diff --git a/src/web/app/common/views/components/post-html.ts b/src/web/app/common/views/components/post-html.ts index 37f60bd080..3676e9e6af 100644 --- a/src/web/app/common/views/components/post-html.ts +++ b/src/web/app/common/views/components/post-html.ts @@ -92,7 +92,8 @@ export default Vue.component('mk-post-html', { return createElement('code', token.html); case 'emoji': - return createElement('span', emojilib.lib[token.emoji] || token.content); + const emoji = emojilib.lib[token.emoji]; + return createElement('span', emoji ? emoji.char : token.content); } }));