fix(backend): fix of 8c684d5391

This commit is contained in:
syuilo 2023-10-08 08:25:37 +09:00
parent 2859cbab91
commit cd8fda50c8

View file

@ -157,10 +157,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
.leftJoinAndSelect('reply.user', 'replyUser') .leftJoinAndSelect('reply.user', 'replyUser')
.leftJoinAndSelect('renote.user', 'renoteUser'); .leftJoinAndSelect('renote.user', 'renoteUser');
query.andWhere(new Brackets(qb => { if (!ps.withChannelNotes) {
qb.orWhere('note.channelId IS NULL'); query.andWhere('note.channelId IS NULL');
qb.orWhere('channel.isSensitive = false'); }
}));
this.queryService.generateVisibilityQuery(query, me); this.queryService.generateVisibilityQuery(query, me);