From 81628e5069e0168b11857f276fe8e03b93102dde Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 2 Jun 2021 14:28:30 +0200 Subject: refactor error code values for URI compatibility --- server/middlewares/validators/videos/videos.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/middlewares/validators/videos/videos.ts') diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts index fd0e543f1..64e09234e 100644 --- a/server/middlewares/validators/videos/videos.ts +++ b/server/middlewares/validators/videos/videos.ts @@ -252,7 +252,7 @@ async function checkVideoFollowConstraints (req: express.Request, res: express.R return res.fail({ status: HttpStatusCode.FORBIDDEN_403, - message: 'Cannot get this video regarding follow constraints.', + message: 'Cannot get this video regarding follow constraints', type: ServerErrorCode.DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS, data: { originUrl: video.url @@ -285,11 +285,11 @@ const videosCustomGetValidator = ( const user = res.locals.oauth ? res.locals.oauth.token.User : null - // Only the owner or a user that have blacklist rights can see the video + // Only the owner or a user that have blocklist rights can see the video if (!user || !user.canGetVideo(video)) { return res.fail({ status: HttpStatusCode.FORBIDDEN_403, - message: 'Cannot get this private/internal or blacklisted video.' + message: 'Cannot get this private/internal or blocklisted video' }) } -- cgit v1.2.3