コメント対応(別チャンネルへのリノート対策)

This commit is contained in:
osamu 2023-11-03 15:51:05 +09:00
parent 7a14bc880d
commit b760ddafe5
1 changed files with 2 additions and 2 deletions

View File

@ -253,8 +253,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
throw new ApiError(meta.errors.cannotRenoteDueToVisibility);
}
if (renote.channelId && !ps.channelId) {
// チャンネル外へのリノート可否をチェック
if (renote.channelId && renote.channelId !== ps.channelId) {
// チャンネルのノートに対しリノート要求がきたとき、チャンネル各TL、別チャンネルへのリノート可否をチェック
// リートのユースケースのうち、チャンネル内→チャンネル外は少数だと考えられるため、JOINはせず必要な時に都度取得する
const renoteChannel = await this.channelsRepository.findOneById(renote.channelId);
if (renoteChannel == null) {