diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-03-26 22:22:39 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-03-26 22:22:39 +0900 |
| commit | 81739af7cb6bbf35808b171d7b585a5ff828d1c3 (patch) | |
| tree | 17e1281a268583121cfc7780c5d4214f1e95e590 /src/models/note.ts | |
| parent | Follow lint (diff) | |
| download | sharkey-81739af7cb6bbf35808b171d7b585a5ff828d1c3.tar.gz sharkey-81739af7cb6bbf35808b171d7b585a5ff828d1c3.tar.bz2 sharkey-81739af7cb6bbf35808b171d7b585a5ff828d1c3.zip | |
Fix: リアクションのカスタム絵文字の情報がNoteに添付されない (#4574)
Diffstat (limited to 'src/models/note.ts')
| -rw-r--r-- | src/models/note.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 }, |