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: [PATCH] =?UTF-8?q?Fix:=20=E3=83=AA=E3=82=A2=E3=82=AF=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=81=AE=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=A0?= =?UTF-8?q?=E7=B5=B5=E6=96=87=E5=AD=97=E3=81=AE=E6=83=85=E5=A0=B1=E3=81=8C?= =?UTF-8?q?Note=E3=81=AB=E6=B7=BB=E4=BB=98=E3=81=95=E3=82=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=20(#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(-) diff --git a/src/models/note.ts b/src/models/note.ts index d4a252631..8c71c1940 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 },