mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-10 05:54:33 +00:00
check suspended users/hosts in following feed
This commit is contained in:
parent
01d8159bc9
commit
f4dafd709c
1 changed files with 6 additions and 0 deletions
|
@ -143,6 +143,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
query.andWhere('"user"."isBot" = false');
|
||||
}
|
||||
|
||||
// Hide blocked users / instances
|
||||
query.andWhere('"user"."isSuspended" = false');
|
||||
query.andWhere('("replyUser" IS NULL OR "replyUser"."isSuspended" = false)');
|
||||
query.andWhere('("renoteUser" IS NULL OR "renoteUser"."isSuspended" = false)');
|
||||
this.queryService.generateBlockedHostQueryForNote(query);
|
||||
|
||||
// Respect blocks and mutes
|
||||
this.queryService.generateBlockedUserQueryForNotes(query, me);
|
||||
this.queryService.generateMutedUserQueryForNotes(query, me);
|
||||
|
|
Loading…
Add table
Reference in a new issue