Do not consider quotes boosts
This commit is contained in:
parent
965b48586e
commit
47a8dae8c5
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,11 @@ export default define(meta, paramDef, async (ps, me) => {
|
||||||
|
|
||||||
if (ps.withRenotes) {
|
if (ps.withRenotes) {
|
||||||
query.andWhere("note.renoteId IS NOT NULL");
|
query.andWhere("note.renoteId IS NOT NULL");
|
||||||
|
query.andWhere("note.text IS NULL");
|
||||||
|
query.andWhere("0 = cardinality(note.fileIds)");
|
||||||
|
query.andWhere(
|
||||||
|
'0 = (SELECT COUNT(*) FROM poll WHERE poll."noteId" = note.id)',
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
Loading…
Reference in a new issue