From 3fc04fcdc536d32213407d25f6c45387f68d0070 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 5 Nov 2018 20:49:02 +0900 Subject: [PATCH] Improve readdability --- .../views/components/misskey-flavored-markdown.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/client/app/common/views/components/misskey-flavored-markdown.ts b/src/client/app/common/views/components/misskey-flavored-markdown.ts index dd111aba0..2a0a2b6f6 100644 --- a/src/client/app/common/views/components/misskey-flavored-markdown.ts +++ b/src/client/app/common/views/components/misskey-flavored-markdown.ts @@ -187,11 +187,14 @@ export default Vue.component('misskey-flavored-markdown', { } case 'emoji': { - const { emoji, name } = token; - const { customEmojis } = this; return [createElement('mk-emoji', { - attrs: { emoji, name }, - props: { customEmojis } + attrs: { + emoji: token.emoji, + name: token.name + }, + props: { + customEmojis: this.customEmojis + } })]; }