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()
}
if (videoComment.videoId !== video.id) {
res.status(400)
- .json({ error: 'Video comment is associated to this video.' })
+ .json({ error: 'Video comment is not associated to this video.' })
.end()
return false
if (videoComment.videoId !== video.id) {
res.status(400)
- .json({ error: 'Video comment is associated to this video.' })
+ .json({ error: 'Video comment is not associated to this video.' })
.end()
return false