From a881d5dfb271ff00181b9db6397911a8872cdf8d Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 31 Jul 2025 10:12:52 +0800 Subject: [PATCH] Make emoji's static for all name text --- src/components/emoji-text.jsx | 6 +++--- src/components/name-text.jsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/emoji-text.jsx b/src/components/emoji-text.jsx index 2200aadf..7d37e2f7 100644 --- a/src/components/emoji-text.jsx +++ b/src/components/emoji-text.jsx @@ -8,7 +8,7 @@ const shortcodesRegexp = mem((shortcodes) => { return new RegExp(`:(${shortcodes.join('|')}):`, 'g'); }); -function EmojiText({ text, emojis }) { +function EmojiText({ text, emojis, staticEmoji }) { if (!text) return ''; if (!emojis?.length) return text; if (text.indexOf(':') === -1) return text; @@ -23,9 +23,9 @@ function EmojiText({ text, emojis }) { const { url, staticUrl } = emoji; return ( = 2 same shortcodes /> ); diff --git a/src/components/name-text.jsx b/src/components/name-text.jsx index 2fcda8c2..e94cca3e 100644 --- a/src/components/name-text.jsx +++ b/src/components/name-text.jsx @@ -112,7 +112,7 @@ function NameText({ {displayName && !short ? ( <> - + {!showAcct && !hideUsername && ( <>