File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/backend/src/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -257,15 +257,15 @@ export class QueryService {
257
257
public generateSuspendedUserQueryForNote ( q : SelectQueryBuilder < any > , excludeAuthor ?: boolean ) : void {
258
258
if ( excludeAuthor ) {
259
259
const brakets = ( user : string ) => new Brackets ( qb => qb
260
- . where ( `${ user } IS NULL` )
260
+ . where ( `note. ${ user } Id IS NULL` )
261
261
. orWhere ( `user.id = ${ user } .id` )
262
262
. orWhere ( `${ user } .isSuspended = FALSE` ) ) ;
263
263
q
264
264
. andWhere ( brakets ( 'replyUser' ) )
265
265
. andWhere ( brakets ( 'renoteUser' ) ) ;
266
266
} else {
267
267
const brakets = ( user : string ) => new Brackets ( qb => qb
268
- . where ( `${ user } IS NULL` )
268
+ . where ( `note. ${ user } Id IS NULL` )
269
269
. orWhere ( `${ user } .isSuspended = FALSE` ) ) ;
270
270
q
271
271
. andWhere ( 'user.isSuspended = FALSE' )
You can’t perform that action at this time.
0 commit comments