Move to eslint
[oweals/peertube.git] / server / middlewares / validators / videos / video-comments.ts
index 77c5f940df4d3fa41f341c4e6e74b0e85a140e44..da2fafb10aaa32d6033244187b2fda2c5a72367a 100644 (file)
@@ -50,7 +50,7 @@ const addVideoCommentThreadValidator = [
     if (areValidationErrors(req, res)) return
     if (!await doesVideoExist(req.params.videoId, res)) return
     if (!isVideoCommentsEnabled(res.locals.videoAll, res)) return
-    if (!await isVideoCommentAccepted(req, res, res.locals.videoAll,false)) return
+    if (!await isVideoCommentAccepted(req, res, res.locals.videoAll, false)) return
 
     return next()
   }