Don't use domain on hashtags for local disp

Fixes #200
This commit is contained in:
Andrew Godwin 2022-12-19 00:05:58 +00:00
parent 5e343d2129
commit 3544aa0c8b

View file

@ -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)