From 4744f7d47cc151553ea7e8f6085ed6c1468caac3 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 31 Jan 2023 10:04:57 -0700 Subject: [PATCH] Don't try to render emojis for remote sends --- core/html.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/html.py b/core/html.py index fc790c8..d876475 100644 --- a/core/html.py +++ b/core/html.py @@ -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: