Merge pull request #28 from anatawa12/fix-cw-exclusiton

fix: cw execution will exclude all notes without cw
This commit is contained in:
anatawa12 2023-08-06 17:12:20 +09:00 committed by GitHub
commit 99046feab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -68,8 +68,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
new Brackets(qb => {
qb.where('note.text NOT LIKE \'%おはよう%\'')
.andWhere('note.text NOT LIKE \'%:ohayo_nirila_misskey:%\'')
.andWhere('note.cw NOT LIKE \'%おはよう%\'')
.andWhere('note.cw NOT LIKE \'%:ohayo_nirila_misskey:%\'')
.andWhere(new Brackets(qb => {
qb.where('note.cw NOT LIKE \'%おはよう%\'')
.andWhere('note.cw NOT LIKE \'%:ohayo_nirila_misskey:%\'')
.orWhere('note.cw IS NULL');
}))
.orWhere('note.fileIds != \'{}\'');
}),
);