X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fvideos%2Fvideo-shares.ts;h=40337dcf11d71612d4d9e16ac4212cc0f729e52c;hb=396f6f0140b0f76162e2378fd5a61e2f888673ed;hp=0f04032bb38ac79778619cc79d060370e09da04c;hpb=97eba003a9d0adcb0cab9190f566327b1417c7d3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/videos/video-shares.ts b/server/middlewares/validators/videos/video-shares.ts index 0f04032bb..40337dcf1 100644 --- a/server/middlewares/validators/videos/video-shares.ts +++ b/server/middlewares/validators/videos/video-shares.ts @@ -10,7 +10,7 @@ const videosShareValidator = [ isValidVideoIdParam('id'), param('actorId') - .custom(isIdValid).not().isEmpty().withMessage('Should have a valid actor id'), + .custom(isIdValid), async (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking videoShare parameters', { parameters: req.params })