chore: クエリを削除

This commit is contained in:
sevenc-nanashi 2025-02-20 21:07:39 +09:00
parent 369e98b099
commit 493a5d7146
1 changed files with 2 additions and 11 deletions

View File

@ -113,17 +113,8 @@ 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');
if (antenna.hideNotesInSensitiveChannel) { // NOTE: センシティブ除外の設定はこのエンドポイントでは無視する。
// TypeORMにはRIGHT JOINがないので、サブクエリで代用。 // https://github.com/misskey-dev/misskey/pull/15346#discussion_r1929950255
query
.andWhere('note.channelId IS NULL OR EXISTS(' +
query.subQuery()
.from('channel', 'channel')
.where('channel.id = note.channelId')
.andWhere('channel.isSensitive = false')
.getQuery() +
' )');
}
this.queryService.generateVisibilityQuery(query, me); this.queryService.generateVisibilityQuery(query, me);
this.queryService.generateMutedUserQuery(query, me); this.queryService.generateMutedUserQuery(query, me);