mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 08:41:00 +00:00
Fix mention formatting on Sengi
This commit is contained in:
parent
1fb02b06e1
commit
67f64a4313
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ class FediverseHtmlParser(HTMLParser):
|
||||||
self.mention_aliases[short_hash] = handle_hash
|
self.mention_aliases[short_hash] = handle_hash
|
||||||
elif self.mention_aliases.get(short_hash) != handle_hash:
|
elif self.mention_aliases.get(short_hash) != handle_hash:
|
||||||
short_handle = handle
|
short_handle = handle
|
||||||
return f'<a href="{html.escape(url)}" class="mention">@{html.escape(short_handle)}</a>'
|
return f'<a href="{html.escape(url)}" class="mention">@<span>{html.escape(short_handle)}</span></a>'
|
||||||
else:
|
else:
|
||||||
return "@" + html.escape(handle)
|
return "@" + html.escape(handle)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue