fix: cw execution will exclude all notes without cw
This commit is contained in:
parent
9a688dde0a
commit
91e0a59d55
|
|
@ -68,8 +68,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||||
new Brackets(qb => {
|
new Brackets(qb => {
|
||||||
qb.where('note.text NOT LIKE \'%おはよう%\'')
|
qb.where('note.text NOT LIKE \'%おはよう%\'')
|
||||||
.andWhere('note.text NOT LIKE \'%:ohayo_nirila_misskey:%\'')
|
.andWhere('note.text NOT LIKE \'%:ohayo_nirila_misskey:%\'')
|
||||||
.andWhere('note.cw NOT LIKE \'%おはよう%\'')
|
.andWhere(new Brackets(qb => {
|
||||||
.andWhere('note.cw NOT LIKE \'%:ohayo_nirila_misskey:%\'')
|
qb.where('note.cw NOT LIKE \'%おはよう%\'')
|
||||||
|
.andWhere('note.cw NOT LIKE \'%:ohayo_nirila_misskey:%\'')
|
||||||
|
.orWhere('note.cw IS NULL');
|
||||||
|
}))
|
||||||
.orWhere('note.fileIds != \'{}\'');
|
.orWhere('note.fileIds != \'{}\'');
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue