mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 10:19:06 +01:00
[backend] Improve renote status aggregate query
This commit is contained in:
parent
8a6101059f
commit
3ccfd0417b
@ -345,6 +345,9 @@ export const NoteRepository = db.getRepository(Note).extend({
|
|||||||
.select('note.renoteId')
|
.select('note.renoteId')
|
||||||
.where('note.userId = :meId', { meId })
|
.where('note.userId = :meId', { meId })
|
||||||
.andWhere('note.renoteId IN (:...targets)', { targets })
|
.andWhere('note.renoteId IN (:...targets)', { targets })
|
||||||
|
.andWhere('note.text IS NULL')
|
||||||
|
.andWhere('note.hasPoll = FALSE')
|
||||||
|
.andWhere(`note.fileIds = '{}'`)
|
||||||
.getMany();
|
.getMany();
|
||||||
|
|
||||||
for (const target of targets) {
|
for (const target of targets) {
|
||||||
|
Loading…
Reference in New Issue
Block a user