From 9b07c5af05a8be8114af860893d68614e4ee5ca2 Mon Sep 17 00:00:00 2001
From: MeiMei <30769358+mei23@users.noreply.github.com>
Date: Tue, 14 Apr 2020 00:42:59 +0900
Subject: リモートのカスタム絵文字リアクションを表示できるように (#6239)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* リモートのカスタム絵文字リアクションを表示できるように
* AP
* DBマイグレーション
* ローカルのリアクションの.
* fix
* fix
* fix
* space
---
src/client/components/note.vue | 8 ++++++++
src/client/components/notification.vue | 2 +-
src/client/components/reaction-icon.vue | 6 +++++-
src/client/components/reactions-viewer.reaction.vue | 2 +-
4 files changed, 15 insertions(+), 3 deletions(-)
(limited to 'src/client')
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', {});
}
diff --git a/src/client/components/notification.vue b/src/client/components/notification.vue
index f415887e76..97a2fe1873 100644
--- a/src/client/components/notification.vue
+++ b/src/client/components/notification.vue
@@ -12,7 +12,7 @@