enhance: センシティブチャンネルはユーザーのノート一覧から除外

This commit is contained in:
Xeltica 2023-09-07 20:31:20 +09:00
parent 90b058e226
commit 07133a300a
1 changed files with 3 additions and 0 deletions

View File

@ -80,9 +80,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
.innerJoinAndSelect('note.user', 'user')
.leftJoinAndSelect('note.reply', 'reply')
.leftJoinAndSelect('note.renote', 'renote')
.leftJoinAndSelect('note.channel', 'channel')
.leftJoinAndSelect('reply.user', 'replyUser')
.leftJoinAndSelect('renote.user', 'renoteUser');
query.andWhere('channel."isSensitive" IS NOT TRUE');
this.queryService.generateVisibilityQuery(query, me);
if (me) {
this.queryService.generateMutedUserQuery(query, me, user);