ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix channel creation limitation
Chocobozzz5197732bcebb
diff --git a/server/middlewares/validators/videos/video-channels.ts b/server/middlewares/validators/videos/video-channels.tsindex ce2d61d493..ebce147147 100644--- a/server/middlewares/validators/videos/video-channels.ts+++ b/server/middlewares/validators/videos/video-channels.ts@@ -36,7 +36,7 @@ const videoChannelsAddValidator = [}const count = await VideoChannelModel.countByAccount(res.locals.oauth.token.User.Account.id)- if (count > VIDEO_CHANNELS.MAX_PER_USER) {+ if (count >= VIDEO_CHANNELS.MAX_PER_USER) {res.status(400).send({ error: `You cannot create more than ${VIDEO_CHANNELS.MAX_PER_USER} channels` }).end()