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
1 changed files with 1 additions and 1 deletions

View File

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