diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/initializers/constants.ts | 2 | ||||
-rw-r--r-- | server/middlewares/validators/videos/video-playlists.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 4cbb87ab5..54c390540 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -642,7 +642,7 @@ let STATIC_MAX_AGE = '2h' | |||
642 | // Videos thumbnail size | 642 | // Videos thumbnail size |
643 | const THUMBNAILS_SIZE = { | 643 | const THUMBNAILS_SIZE = { |
644 | width: 223, | 644 | width: 223, |
645 | height: 112 | 645 | height: 122 |
646 | } | 646 | } |
647 | const PREVIEWS_SIZE = { | 647 | const PREVIEWS_SIZE = { |
648 | width: 560, | 648 | width: 560, |
diff --git a/server/middlewares/validators/videos/video-playlists.ts b/server/middlewares/validators/videos/video-playlists.ts index fa26e2336..22b8b8ff1 100644 --- a/server/middlewares/validators/videos/video-playlists.ts +++ b/server/middlewares/validators/videos/video-playlists.ts | |||
@@ -344,6 +344,7 @@ function getCommonPlaylistEditAttributes () { | |||
344 | .custom(isVideoPlaylistPrivacyValid).withMessage('Should have correct playlist privacy'), | 344 | .custom(isVideoPlaylistPrivacyValid).withMessage('Should have correct playlist privacy'), |
345 | body('videoChannelId') | 345 | body('videoChannelId') |
346 | .optional() | 346 | .optional() |
347 | .customSanitizer(toValueOrNull) | ||
347 | .toInt() | 348 | .toInt() |
348 | ] as (ValidationChain | express.Handler)[] | 349 | ] as (ValidationChain | express.Handler)[] |
349 | } | 350 | } |