this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make emoji's static for all name text

+4 -4
+3 -3
src/components/emoji-text.jsx
··· 8 8 return new RegExp(`:(${shortcodes.join('|')}):`, 'g'); 9 9 }); 10 10 11 - function EmojiText({ text, emojis }) { 11 + function EmojiText({ text, emojis, staticEmoji }) { 12 12 if (!text) return ''; 13 13 if (!emojis?.length) return text; 14 14 if (text.indexOf(':') === -1) return text; ··· 23 23 const { url, staticUrl } = emoji; 24 24 return ( 25 25 <CustomEmoji 26 - staticUrl={staticUrl} 26 + staticUrl={staticEmoji ? undefined : staticUrl} 27 27 alt={word} 28 - url={url} 28 + url={staticEmoji ? staticUrl || url : url} 29 29 key={word + '-' + i} // Handle >= 2 same shortcodes 30 30 /> 31 31 );
+1 -1
src/components/name-text.jsx
··· 112 112 {displayName && !short ? ( 113 113 <> 114 114 <b dir="auto"> 115 - <EmojiText text={displayName} emojis={emojis} /> 115 + <EmojiText text={displayName} emojis={emojis} staticEmoji /> 116 116 </b> 117 117 {!showAcct && !hideUsername && ( 118 118 <>