From 44946e8359a84b525336ef86a98de15e95155d46 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 27 Feb 2018 03:48:14 +0900 Subject: [PATCH] Fix bug --- src/web/app/common/views/components/post-html.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } }));