Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8a9db8f8 by Philipp Hörist at 2026-02-24T22:52:27+01:00
cfix: Previews: Don't limit image length
This is not necessary, because we don't store the link anyway and we already
have a limit on the max size we download from the size
- - - - -
1 changed file:
- gajim/common/open_graph_parser.py
Changes:
=====================================
gajim/common/open_graph_parser.py
=====================================
@@ -87,6 +87,9 @@ def handle_starttag(self, tag: str, attrs: list[tuple[str,
str | None]]) -> None
return
match dict(attrs):
+ case {"property": "og:image", "content": content} if content:
+ self._attributes["image"] = content
+
case {"property": prop, "content": content} if (
prop in ALLOWED_OG_PROPERTIES and content
):
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/8a9db8f8e4666644135f03a97fe37bed7046aad5
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/8a9db8f8e4666644135f03a97fe37bed7046aad5
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]