Skip to content

Commit 2ccee7c

Browse files
Merge pull request #36
v3.12.7
2 parents 180cc7f + 7be2c1c commit 2ccee7c

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v3.12.7
4+
5+
### Fixes
6+
7+
* Fix parsing of mentions
8+
* Some anchor links are rendered without a href property, causing the parser to fail
9+
310
## v3.12.6
411

512
### Fixes

faapi/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.12.6"
1+
__version__ = "3.12.7"

faapi/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def parse_username_from_url(url: str) -> Optional[str]:
346346

347347

348348
def parse_mentions(tag: Tag) -> list[str]:
349-
mentions: list[str] = [username_url(m[1]) for a in tag.select("a")
349+
mentions: list[str] = [username_url(m[1]) for a in tag.select("a[href]")
350350
if (m := match(mentions_regexp, get_attr(a, "href")))]
351351
return sorted(set([m for m in mentions if m]), key=mentions.index)
352352

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "faapi"
3-
version = "3.12.6"
3+
version = "3.12.7"
44
description = "Python module to implement API-like functionality for the FurAffinity.net website."
55
authors = ["Matteo Campinoti <matteo.campinoti94@gmail.com>"]
66
license = "EUPL-1.2"

0 commit comments

Comments
 (0)