aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/shared/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/shared/videos.ts')
-rw-r--r--server/middlewares/validators/shared/videos.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/server/middlewares/validators/shared/videos.ts b/server/middlewares/validators/shared/videos.ts
index 1a22d6513..6131379ce 100644
--- a/server/middlewares/validators/shared/videos.ts
+++ b/server/middlewares/validators/shared/videos.ts
@@ -8,7 +8,7 @@ import {
8 MVideoAccountLight, 8 MVideoAccountLight,
9 MVideoFormattableDetails, 9 MVideoFormattableDetails,
10 MVideoFullLight, 10 MVideoFullLight,
11 MVideoIdThumbnail, 11 MVideoId,
12 MVideoImmutable, 12 MVideoImmutable,
13 MVideoThumbnail, 13 MVideoThumbnail,
14 MVideoWithRights 14 MVideoWithRights
@@ -43,16 +43,12 @@ async function doesVideoExist (id: number | string, res: Response, fetchType: Vi
43 break 43 break
44 44
45 case 'id': 45 case 'id':
46 res.locals.videoId = video as MVideoIdThumbnail 46 res.locals.videoId = video as MVideoId
47 break 47 break
48 48
49 case 'only-video': 49 case 'only-video':
50 res.locals.onlyVideo = video as MVideoThumbnail 50 res.locals.onlyVideo = video as MVideoThumbnail
51 break 51 break
52
53 case 'only-video-with-rights':
54 res.locals.onlyVideoWithRights = video as MVideoWithRights
55 break
56 } 52 }
57 53
58 return true 54 return true