From 81739af7cb6bbf35808b171d7b585a5ff828d1c3 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Tue, 26 Mar 2019 22:22:39 +0900 Subject: Fix: リアクションのカスタム絵文字の情報がNoteに添付されない (#4574) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/models') diff --git a/src/models/note.ts b/src/models/note.ts index d4a2526317..8c71c1940c 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -259,7 +259,7 @@ export const pack = async ( fields: { _id: false } }); } else { - _note.emojis = unique(concat([_note.emojis, Object.keys(_note.reactionCounts)])); + _note.emojis = unique(concat([_note.emojis, Object.keys(_note.reactionCounts).map(x => x.replace(/:/g, ''))])); _note.emojis = Emoji.find({ name: { $in: _note.emojis }, -- cgit v1.2.3-freya