diff --git a/src/models/repositories/note.ts b/src/models/repositories/note.ts index bf5ebfdbf..9c01bf84d 100644 --- a/src/models/repositories/note.ts +++ b/src/models/repositories/note.ts @@ -139,9 +139,11 @@ export class NoteRepository extends Repository { }); } + reactionNames = reactionNames?.filter(x => x.match(/^:[^:]+:$/)).map(x => x.replace(/:/g, '')); + if (reactionNames?.length > 0) { where.push({ - name: In(reactionNames.map(x => x.replace(/:/g, ''))), + name: In(reactionNames), host: null }); }