mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +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')
|
||||
.where('note.userId = :meId', { meId })
|
||||
.andWhere('note.renoteId IN (:...targets)', { targets })
|
||||
.andWhere('note.text IS NULL')
|
||||
.andWhere('note.hasPoll = FALSE')
|
||||
.andWhere(`note.fileIds = '{}'`)
|
||||
.getMany();
|
||||
|
||||
for (const target of targets) {
|
||||
|
Loading…
Reference in New Issue
Block a user