Skip to content

Commit e08bddf

Browse files
committed
Fixed custom emoji rendering on public kudos
1 parent 3c48ea3 commit e08bddf

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

web-ui/src/components/kudos/PublicKudosCard.jsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const KudosCard = ({ kudos }) => {
8181
}
8282
for(const emoji in aliases) {
8383
if (Object.hasOwn(aliases, emoji)) {
84-
shortcodeMap[emoji] = shortcodeMap[aliases[emoji]];
84+
shortcodeMap[emoji] = shortcodeMap[aliases[emoji].alias];
8585
}
8686
}
8787
setEmojiShortcodeMap(shortcodeMap);
@@ -237,11 +237,13 @@ const KudosCard = ({ kudos }) => {
237237
} else if (emojiData.customUrl) {
238238
// Render custom emoji using emojiUrl
239239
components.push(
240-
<Emoji
241-
key={`${match.index}-${shortcode}`}
242-
emojiUrl={emojiData.customUrl}
243-
size={20}
244-
/>
240+
<img src={emojiData.customUrl} alt={shortcode} style={{ height: '20px', width: '20px', fontSize: '20px' }} />
241+
// Not sure why the below doesn't work. It seems like it should according to the docs. :shrug:s
242+
// <Emoji
243+
// key={`${match.index}-${shortcode}`}
244+
// emojiUrl={emojiData.customUrl}
245+
// size={20}
246+
// />
245247
);
246248
}
247249
} else {

0 commit comments

Comments
 (0)