chore: fix non-reply / renote

This commit is contained in:
anatawa12 2025-04-08 00:49:07 +09:00
parent 12c3304cb5
commit 752f0366d8
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
1 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ export class QueryService {
public generateSuspendedUserQueryForNote(q: SelectQueryBuilder<any>, excludeAuthor?: boolean): void {
if (excludeAuthor) {
const brakets = (user: string) => new Brackets(qb => qb
.where(`${user} IS NULL`)
.where(`note.${user}Id IS NULL`)
.orWhere(`user.id = ${user}.id`)
.orWhere(`${user}.isSuspended = FALSE`));
q
@ -265,7 +265,7 @@ export class QueryService {
.andWhere(brakets('renoteUser'));
} else {
const brakets = (user: string) => new Brackets(qb => qb
.where(`${user} IS NULL`)
.where(`note.${user}Id IS NULL`)
.orWhere(`${user}.isSuspended = FALSE`));
q
.andWhere('user.isSuspended = FALSE')