Don't try to render emojis for remote sends

This commit is contained in:
Andrew Godwin 2023-01-31 10:04:57 -07:00
parent 0f66900d9c
commit 4744f7d47c

View file

@ -327,7 +327,7 @@ class ContentRenderer:
mentions=post.mentions.all(),
uri_domain=(None if self.local else post.author.domain.uri_domain),
find_hashtags=True,
find_emojis=True,
find_emojis=self.local,
emoji_domain=post.author.domain,
)
return mark_safe(parser.html)
@ -342,7 +342,7 @@ class ContentRenderer:
html,
uri_domain=(None if self.local else identity.domain.uri_domain),
find_hashtags=True,
find_emojis=True,
find_emojis=self.local,
emoji_domain=identity.domain,
)
return mark_safe(parser.html)
@ -357,7 +357,7 @@ class ContentRenderer:
html,
uri_domain=(None if self.local else identity.domain.uri_domain),
find_hashtags=False,
find_emojis=True,
find_emojis=self.local,
emoji_domain=identity.domain,
)
if strip: