X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fcustom-validators%2Fvideo-channels.ts;h=e1a2f9503366a64e55ffbd93275305ce27e3d887;hb=dba85a1e9e9f603ba52e1ea42deaf3fdd799b1d8;hp=f818ce8f1acc2052b2a30eb50c586a8eeab818dd;hpb=57cfff78858b2360d9e038e2a504b761cb51da47;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/custom-validators/video-channels.ts b/server/helpers/custom-validators/video-channels.ts index f818ce8f1..e1a2f9503 100644 --- a/server/helpers/custom-validators/video-channels.ts +++ b/server/helpers/custom-validators/video-channels.ts @@ -51,9 +51,7 @@ export { function processVideoChannelExist (videoChannel: VideoChannelModel, res: express.Response) { if (!videoChannel) { - res.status(404) - .json({ error: 'Video channel not found' }) - .end() + `` return false }