mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Fix mentions
This commit is contained in:
parent
e59d17f4f6
commit
6323b13feb
1 changed files with 1 additions and 1 deletions
|
@ -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'<span class="h-card"><a href="{actor.url}" class="u-url mention">@{username}</a></span>' # noqa: E501
|
||||
content = content.replace(mention, link)
|
||||
|
|
Loading…
Reference in a new issue