Skip to content

Commit 752f036

Browse files
committed
chore: fix non-reply / renote
1 parent 12c3304 commit 752f036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/backend/src/core/QueryService.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@ export class QueryService {
257257
public generateSuspendedUserQueryForNote(q: SelectQueryBuilder<any>, excludeAuthor?: boolean): void {
258258
if (excludeAuthor) {
259259
const brakets = (user: string) => new Brackets(qb => qb
260-
.where(`${user} IS NULL`)
260+
.where(`note.${user}Id IS NULL`)
261261
.orWhere(`user.id = ${user}.id`)
262262
.orWhere(`${user}.isSuspended = FALSE`));
263263
q
264264
.andWhere(brakets('replyUser'))
265265
.andWhere(brakets('renoteUser'));
266266
} else {
267267
const brakets = (user: string) => new Brackets(qb => qb
268-
.where(`${user} IS NULL`)
268+
.where(`note.${user}Id IS NULL`)
269269
.orWhere(`${user}.isSuspended = FALSE`));
270270
q
271271
.andWhere('user.isSuspended = FALSE')

0 commit comments

Comments
 (0)