Merge branch 'fix-emoji-display' into 'main'

fix: like emoji display

Closes #1796

See merge request soapbox-pub/soapbox!3295
This commit is contained in:
Alex Gleason 2024-12-12 03:41:26 +00:00
commit 3b5ad6e3ba
1 changed files with 4 additions and 1 deletions

View File

@ -660,7 +660,10 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
const emojiReactCount = status.reactions?.reduce((acc, reaction) => acc + (reaction.count ?? 0), 0) ?? 0; // allow all emojis
const meEmojiReact = status.reactions?.find((emojiReact) => emojiReact.me); // allow all emojis
const meEmojiReact = status.reactions?.find((emojiReact) => emojiReact.me) // allow all emojis
?? (account && status.favourited)
? { count: 1, me: status.account.id === account!.id, name: '👍' }
: undefined;
const meEmojiName = meEmojiReact?.name as keyof typeof reactMessages | undefined;
const reactMessages = {