]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/feeds.ts
Fix feeds with channel filter
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / feeds.ts
index c1054ad9b28b013fe1dba483712aca87cad3478b..969ce2526ef98009c5d4a254eee2dd71b9e8a181 100644 (file)
@@ -23,7 +23,7 @@ const videoFeedsValidator = [
     if (areValidationErrors(req, res)) return
 
     if (req.query.accountId && !await isAccountIdExist(req.query.accountId, res)) return
-    if (req.query.videoChannelName && !await isVideoChannelIdExist(req.query.videoChannelName, res)) return
+    if (req.query.videoChannelId && !await isVideoChannelIdExist(req.query.videoChannelId, res)) return
     if (req.query.accountName && !await isAccountNameWithHostExist(req.query.accountName, res)) return
     if (req.query.videoChannelName && !await isVideoChannelNameWithHostExist(req.query.videoChannelName, res)) return