mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
reduce calls to generateMutedUserRenotesQueryForNotes in bubble-timeline.ts
This commit is contained in:
parent
0ccbb8f3cf
commit
005b23947e
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
this.queryService.generateBlockedHostQueryForNote(query);
|
this.queryService.generateBlockedHostQueryForNote(query);
|
||||||
if (me) this.queryService.generateMutedUserQueryForNotes(query, me);
|
if (me) this.queryService.generateMutedUserQueryForNotes(query, me);
|
||||||
if (me) this.queryService.generateBlockedUserQueryForNotes(query, me);
|
if (me) this.queryService.generateBlockedUserQueryForNotes(query, me);
|
||||||
if (me) this.queryService.generateMutedUserRenotesQueryForNotes(query, me);
|
|
||||||
|
|
||||||
if (ps.withFiles) {
|
if (ps.withFiles) {
|
||||||
query.andWhere('note.fileIds != \'{}\'');
|
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.replyId IS NOT NULL')
|
||||||
.orWhere('note.hasPoll = true')
|
.orWhere('note.hasPoll = true')
|
||||||
.orWhere('note.fileIds != \'{}\'')));
|
.orWhere('note.fileIds != \'{}\'')));
|
||||||
|
} else if (me) {
|
||||||
|
this.queryService.generateMutedUserRenotesQueryForNotes(query, me);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue