From 6323b13feb2db7a9c305c5234590f1b49f51f551 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 9 Aug 2022 22:22:58 +0200 Subject: [PATCH] Fix mentions --- app/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/source.py b/app/source.py index cd80bc1..4324c2b 100644 --- a/app/source.py +++ b/app/source.py @@ -59,7 +59,7 @@ async def _mentionify( actor = await fetch_actor(db_session, actor_url) mentioned_actors.append(actor) - tags.append(dict(type="Mention", href=actor.url, name=mention)) + tags.append(dict(type="Mention", href=actor.ap_id, name=mention)) link = f'@{username}' # noqa: E501 content = content.replace(mention, link)