mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +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