Don't use domain on hashtags for local disp

Fixes #200
pull/211/head
Andrew Godwin 2022-12-19 00:05:58 +00:00
rodzic 5e343d2129
commit 3544aa0c8b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -363,7 +363,7 @@ class Post(StatorModel):
def _safe_content_note(self, *, local: bool = True): def _safe_content_note(self, *, local: bool = True):
content = Hashtag.linkify_hashtags( content = Hashtag.linkify_hashtags(
self.linkify_mentions(sanitize_post(self.content), local=local), self.linkify_mentions(sanitize_post(self.content), local=local),
domain=self.author.domain, domain=None if local else self.author.domain,
) )
if local: if local:
content = imageify_emojis(content, self.author.domain) content = imageify_emojis(content, self.author.domain)