diff --git a/server/modlog/index.ts b/server/modlog/index.ts index 9537e115e4..0a95342522 100644 --- a/server/modlog/index.ts +++ b/server/modlog/index.ts @@ -445,7 +445,7 @@ export class Modlog { for (const noteSearch of search.note) { const tester = noteSearch.isExact ? `= ?` : `LIKE ?`; - const args = [noteSearch.isExact ? noteSearch + '%' : `%${noteSearch}%`]; + const args = [noteSearch.isExact ? noteSearch.search + '%' : `%${noteSearch.search}%`]; if (noteSearch.isExclusion) { ands.push({query: `note ${noteSearch.isExact ? '!' : 'NOT '}${tester}`, args}); } else {