summaryrefslogtreecommitdiff
path: root/src/client/components/note.vue
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2020-04-14 00:42:59 +0900
committerGitHub <noreply@github.com>2020-04-14 00:42:59 +0900
commit9b07c5af05a8be8114af860893d68614e4ee5ca2 (patch)
tree3ca2587fe8e4d0bb845d2f42f443e21d224c4d6f /src/client/components/note.vue
parentchore(client): :art: (diff)
downloadsharkey-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.vue8
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', {});
}