diff --git a/src/components/status.jsx b/src/components/status.jsx index 6ce567c4..2d739824 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -1943,7 +1943,24 @@ function Status({ {!!emojiReactions?.length && (
{emojiReactions.map((emojiReaction) => { - const { name, count, me } = emojiReaction; + const { name, count, me, url, staticUrl } = emojiReaction; + if (url) { + // Some servers return url and staticUrl + return ( + + {' '} + {count} + + ); + } const isShortCode = /^:.+?:$/.test(name); if (isShortCode) { const emoji = emojis.find( @@ -1962,7 +1979,7 @@ function Status({ alt={name} url={emoji.url} staticUrl={emoji.staticUrl} - /> + />{' '} {count} );