aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/middlewares/validators/videos/video-comments.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/videos/video-comments.ts b/server/middlewares/validators/videos/video-comments.ts
index eb07d9430..77c5f940d 100644
--- a/server/middlewares/validators/videos/video-comments.ts
+++ b/server/middlewares/validators/videos/video-comments.ts
@@ -134,7 +134,7 @@ async function doesVideoCommentThreadExist (idArg: number | string, video: MVide
134 134
135 if (videoComment.videoId !== video.id) { 135 if (videoComment.videoId !== video.id) {
136 res.status(400) 136 res.status(400)
137 .json({ error: 'Video comment is associated to this video.' }) 137 .json({ error: 'Video comment is not associated to this video.' })
138 .end() 138 .end()
139 139
140 return false 140 return false
@@ -166,7 +166,7 @@ async function doesVideoCommentExist (idArg: number | string, video: MVideoId, r
166 166
167 if (videoComment.videoId !== video.id) { 167 if (videoComment.videoId !== video.id) {
168 res.status(400) 168 res.status(400)
169 .json({ error: 'Video comment is associated to this video.' }) 169 .json({ error: 'Video comment is not associated to this video.' })
170 .end() 170 .end()
171 171
172 return false 172 return false