1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Boostrap support for quote URL

This commit is contained in:
Thomas Sileo
2022-09-21 19:18:44 +02:00
parent 4fcf585c23
commit 254588f7c0
5 changed files with 90 additions and 5 deletions

View File

@ -66,7 +66,8 @@ async def external_urls(
tags_hrefs = set()
for tag in ro.tags:
if tag_href := tag.get("href"):
tags_hrefs.add(tag_href)
if tag_href and tag_href not in filter(None, [ro.quote_url]):
tags_hrefs.add(tag_href)
if tag.get("type") == "Mention":
if tag["href"] != LOCAL_ACTOR.ap_id:
mentioned_actor = await fetch_actor(db_session, tag["href"])