From 830b4faff15fb9c81d88e8e69fcdf94aad32bef8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 6 Mar 2019 15:36:44 +0100 Subject: Add/update/delete/list my playlists --- server/initializers/constants.ts | 2 +- server/middlewares/validators/videos/video-playlists.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'server') 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' // Videos thumbnail size const THUMBNAILS_SIZE = { width: 223, - height: 112 + height: 122 } const PREVIEWS_SIZE = { 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 () { .custom(isVideoPlaylistPrivacyValid).withMessage('Should have correct playlist privacy'), body('videoChannelId') .optional() + .customSanitizer(toValueOrNull) .toInt() ] as (ValidationChain | express.Handler)[] } -- cgit v1.2.3