1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 04:04:16 +00:00

reduce calls to generateMutedUserRenotesQueryForNotes in bubble-timeline.ts

This commit is contained in:
Hazelnoot
2025-06-02 17:32:06 -04:00
parent 0ccbb8f3cf
commit 005b23947e

View File

@@ -92,7 +92,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
this.queryService.generateBlockedHostQueryForNote(query);
if (me) this.queryService.generateMutedUserQueryForNotes(query, me);
if (me) this.queryService.generateBlockedUserQueryForNotes(query, me);
if (me) this.queryService.generateMutedUserRenotesQueryForNotes(query, me);
if (ps.withFiles) {
query.andWhere('note.fileIds != \'{}\'');
@@ -108,6 +107,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
.orWhere('note.replyId IS NOT NULL')
.orWhere('note.hasPoll = true')
.orWhere('note.fileIds != \'{}\'')));
} else if (me) {
this.queryService.generateMutedUserRenotesQueryForNotes(query, me);
}
}
//#endregion