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 },