メッセージでのカスタム絵文字対応

This commit is contained in:
syuilo 2018-11-06 03:57:02 +09:00
parent e9a3495225
commit 961ed969db
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -187,13 +187,14 @@ export default Vue.component('misskey-flavored-markdown', {
} }
case 'emoji': { case 'emoji': {
const customEmojis = (this.os.getMetaSync() || { emojis: [] }).emojis || [];
return [createElement('mk-emoji', { return [createElement('mk-emoji', {
attrs: { attrs: {
emoji: token.emoji, emoji: token.emoji,
name: token.name name: token.name
}, },
props: { props: {
customEmojis: this.customEmojis customEmojis: this.customEmojis || customEmojis
} }
})]; })];
} }