aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorWicklow <wicklow@framasoft.org>2023-02-23 15:39:09 +0100
committerChocobozzz <chocobozzz@cpy.re>2023-02-23 16:07:44 +0100
commit16ccb43767c45e74877ab7beaa4adb61a404c128 (patch)
treed61704e49131c6233cbc550b71f27212c1516db4 /server/middlewares
parent918ba713e4e8014d7b995e61df0ecada934c6361 (diff)
downloadPeerTube-16ccb43767c45e74877ab7beaa4adb61a404c128.tar.gz
PeerTube-16ccb43767c45e74877ab7beaa4adb61a404c128.tar.zst
PeerTube-16ccb43767c45e74877ab7beaa4adb61a404c128.zip
Fix filters on playlists
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/videos/video-playlists.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/video-playlists.ts b/server/middlewares/validators/videos/video-playlists.ts
index e4b7e5c56..c631a16f8 100644
--- a/server/middlewares/validators/videos/video-playlists.ts
+++ b/server/middlewares/validators/videos/video-playlists.ts
@@ -142,7 +142,7 @@ const videoPlaylistsGetValidator = (fetchType: VideoPlaylistFetchType) => {
142 142
143 const videoPlaylist = res.locals.videoPlaylistFull || res.locals.videoPlaylistSummary 143 const videoPlaylist = res.locals.videoPlaylistFull || res.locals.videoPlaylistSummary
144 144
145 // Video is unlisted, check we used the uuid to fetch it 145 // Playlist is unlisted, check we used the uuid to fetch it
146 if (videoPlaylist.privacy === VideoPlaylistPrivacy.UNLISTED) { 146 if (videoPlaylist.privacy === VideoPlaylistPrivacy.UNLISTED) {
147 if (isUUIDValid(req.params.playlistId)) return next() 147 if (isUUIDValid(req.params.playlistId)) return next()
148 148