Fix: only local channels.

This commit is contained in:
John Livingston
2023-08-09 14:18:28 +02:00
parent a25c4822fa
commit cb6decfa84
2 changed files with 11 additions and 3 deletions

View File

@ -19,7 +19,7 @@ async function initModerationApiRouter (options: RegisterServerOptions): Promise
return
}
const channelInfos = await getChannelInfosById(options, parseInt(channelId))
const channelInfos = await getChannelInfosById(options, parseInt(channelId), true)
if (!channelInfos) {
logger.warn(`Channel ${channelId} not found`)
res.sendStatus(404)