diff options
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r-- | server/middlewares/validators/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts index 9fe5a253b..da17b4a68 100644 --- a/server/middlewares/validators/videos.ts +++ b/server/middlewares/validators/videos.ts | |||
@@ -223,7 +223,7 @@ const videosUpdateValidator = [ | |||
223 | 223 | ||
224 | if (video.privacy !== VideoPrivacy.PRIVATE && req.body.privacy === VideoPrivacy.PRIVATE) { | 224 | if (video.privacy !== VideoPrivacy.PRIVATE && req.body.privacy === VideoPrivacy.PRIVATE) { |
225 | return res.status(409) | 225 | return res.status(409) |
226 | .json({ error: 'Cannot set "private" a video that was not private anymore.' }) | 226 | .json({ error: 'Cannot set "private" a video that was not private.' }) |
227 | .end() | 227 | .end() |
228 | } | 228 | } |
229 | 229 | ||