diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-06 15:36:44 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | 830b4faff15fb9c81d88e8e69fcdf94aad32bef8 (patch) | |
tree | 53de6c9e30ce88734b4bdda62016e0498fe78491 /server | |
parent | d4c9f45b31eda0b7a391ddc83eb290ca5cba311f (diff) | |
download | PeerTube-830b4faff15fb9c81d88e8e69fcdf94aad32bef8.tar.gz PeerTube-830b4faff15fb9c81d88e8e69fcdf94aad32bef8.tar.zst PeerTube-830b4faff15fb9c81d88e8e69fcdf94aad32bef8.zip |
Add/update/delete/list my playlists
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 | } |