From 31c4f891249f68d978e47ba1f89df99668e87a6d Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 13 May 2023 10:40:00 -0600 Subject: [PATCH] Make mentions look EXACTLY like Mastodon --- core/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/html.py b/core/html.py index 4efd700..8ac3d7d 100644 --- a/core/html.py +++ b/core/html.py @@ -196,7 +196,7 @@ class FediverseHtmlParser(HTMLParser): self.mention_aliases[short_hash] = handle_hash elif self.mention_aliases.get(short_hash) != handle_hash: short_handle = handle - return f'@{html.escape(short_handle)}' + return f'@{html.escape(short_handle)}' else: return "@" + html.escape(handle)