diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-04-14 00:42:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-14 00:42:59 +0900 |
| commit | 9b07c5af05a8be8114af860893d68614e4ee5ca2 (patch) | |
| tree | 3ca2587fe8e4d0bb845d2f42f443e21d224c4d6f /src/client/components/note.vue | |
| parent | chore(client): :art: (diff) | |
| download | sharkey-9b07c5af05a8be8114af860893d68614e4ee5ca2.tar.gz sharkey-9b07c5af05a8be8114af860893d68614e4ee5ca2.tar.bz2 sharkey-9b07c5af05a8be8114af860893d68614e4ee5ca2.zip | |
リモートのカスタム絵文字リアクションを表示できるように (#6239)
* リモートのカスタム絵文字リアクションを表示できるように
* AP
* DBマイグレーション
* ローカルのリアクションの.
* fix
* fix
* fix
* space
Diffstat (limited to 'src/client/components/note.vue')
| -rw-r--r-- | src/client/components/note.vue | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue index 18d5cc34ba..a39520fb4c 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -301,6 +301,14 @@ export default Vue.extend({ case 'reacted': { const reaction = body.reaction; + if (body.emoji) { + const emojis = this.appearNote.emojis || []; + if (!emojis.includes(body.emoji)) { + emojis.push(body.emoji); + Vue.set(this.appearNote, 'emojis', emojis); + } + } + if (this.appearNote.reactions == null) { Vue.set(this.appearNote, 'reactions', {}); } |