From 584ef68d553d28953bc3b8b6ac46bc1fc91fd4e7 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Sat, 16 May 2026 21:51:11 +0200 Subject: [PATCH 1/3] parse:parse_mentions - only parse anchor tags with href --- faapi/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faapi/parse.py b/faapi/parse.py index 9903495..570078f 100644 --- a/faapi/parse.py +++ b/faapi/parse.py @@ -346,7 +346,7 @@ def parse_username_from_url(url: str) -> Optional[str]: def parse_mentions(tag: Tag) -> list[str]: - mentions: list[str] = [username_url(m[1]) for a in tag.select("a") + mentions: list[str] = [username_url(m[1]) for a in tag.select("a[href]") if (m := match(mentions_regexp, get_attr(a, "href")))] return sorted(set([m for m in mentions if m]), key=mentions.index) From 7fefb7db449a1ee82859882f0d7b0ff670c9d759 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Sat, 16 May 2026 21:51:44 +0200 Subject: [PATCH 2/3] version - patch 3.12.6 > 3.12.7 --- faapi/__version__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/faapi/__version__.py b/faapi/__version__.py index 8f4725c..1980816 100644 --- a/faapi/__version__.py +++ b/faapi/__version__.py @@ -1 +1 @@ -__version__ = "3.12.6" +__version__ = "3.12.7" diff --git a/pyproject.toml b/pyproject.toml index 02e4a31..ce4e5c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "faapi" -version = "3.12.6" +version = "3.12.7" description = "Python module to implement API-like functionality for the FurAffinity.net website." authors = ["Matteo Campinoti "] license = "EUPL-1.2" From 7be2c1ce4c86ca011a01b596b500b767a430ceca Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Sat, 16 May 2026 21:54:59 +0200 Subject: [PATCH 3/3] changelog:3.12.7 - add fixes --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd1e2cf..9c32dff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## v3.12.7 + +### Fixes + +* Fix parsing of mentions + * Some anchor links are rendered without a href property, causing the parser to fail + ## v3.12.6 ### Fixes