We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12c3304 commit 752f036Copy full SHA for 752f036
packages/backend/src/core/QueryService.ts
@@ -257,15 +257,15 @@ export class QueryService {
257
public generateSuspendedUserQueryForNote(q: SelectQueryBuilder<any>, excludeAuthor?: boolean): void {
258
if (excludeAuthor) {
259
const brakets = (user: string) => new Brackets(qb => qb
260
- .where(`${user} IS NULL`)
+ .where(`note.${user}Id IS NULL`)
261
.orWhere(`user.id = ${user}.id`)
262
.orWhere(`${user}.isSuspended = FALSE`));
263
q
264
.andWhere(brakets('replyUser'))
265
.andWhere(brakets('renoteUser'));
266
} else {
267
268
269
270
271
.andWhere('user.isSuspended = FALSE')
0 commit comments