Add support for unicode emojis

refs: https://github.com/syuilo/misskey/pull/3117#issuecomment-435745613
This commit is contained in:
Acid Chicken (硫酸鶏)
2018-11-05 15:15:30 +09:00
parent b7f10fdc10
commit 200ebefe92
3 changed files with 37 additions and 17 deletions

View File

@@ -187,10 +187,10 @@ export default Vue.component('misskey-flavored-markdown', {
}
case 'emoji': {
const { emoji } = token;
const { emoji, raw } = token;
const { customEmojis } = this;
return [createElement('mk-emoji', {
attrs: { emoji },
attrs: { emoji, raw },
props: { customEmojis }
})];
}