fix excludeAuthor check in QueryService.generateBlockedHostQueryForNote
This commit is contained in:
parent
c9fc153fe2
commit
929ddb7e76
1 changed files with 3 additions and 2 deletions
|
|
@ -266,8 +266,9 @@ export class QueryService {
|
|||
.orWhere(`"${key}Instance" IS NULL`) // local
|
||||
.orWhere(`"${key}Instance"."isBlocked" = false`); // not blocked
|
||||
|
||||
if (excludeAuthor) {
|
||||
qb.orWhere(`note.userId = note.${key}Id`); // author
|
||||
if (key !== 'user') {
|
||||
// Don't re-check self-replies and self-renote targets
|
||||
qb.orWhere(`note.userId = note.${key}Id`);
|
||||
}
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue