From ecc017d7ed94b68a4463a7f7d811979dc4d1a639 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 37f60bd08..3676e9e6a 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); } }));