summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-27 03:48:14 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-27 03:48:14 +0900
commit44946e8359a84b525336ef86a98de15e95155d46 (patch)
treef535aebdd7e9c14fde24d875d287d79f33c30a27 /src/web
parentv3904 (diff)
downloadmisskey-44946e8359a84b525336ef86a98de15e95155d46.tar.gz
misskey-44946e8359a84b525336ef86a98de15e95155d46.tar.bz2
misskey-44946e8359a84b525336ef86a98de15e95155d46.zip
Fix bug
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/common/views/components/post-html.ts3
1 files changed, 2 insertions, 1 deletions
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);
}
}));