]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/videos/video-comments.ts
Add sync link to import page
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / videos / video-comments.ts
index b22a4e3b79e5a2eb75377d5644d2478537e421b1..68f41e50e5e49ec37fec24409020abb8c00dc9be 100644 (file)
@@ -24,6 +24,12 @@ const listVideoCommentsValidator = [
   .custom(isBooleanValid)
   .withMessage('Should have a valid is local boolean'),
 
+  query('onLocalVideo')
+  .optional()
+  .customSanitizer(toBooleanOrNull)
+  .custom(isBooleanValid)
+  .withMessage('Should have a valid is on local video boolean'),
+
   query('search')
     .optional()
     .custom(exists).withMessage('Should have a valid search'),