kopia lustrzana https://github.com/jointakahe/takahe
rodzic
5e343d2129
commit
3544aa0c8b
|
@ -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)
|
||||||
|
|
Ładowanie…
Reference in New Issue