1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Display playlists if allowed to escape federation

This commit is contained in:
Chocobozzz 2024-03-27 15:48:29 +01:00
parent 3f8454ce63
commit 5ef0430dfb
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 25 additions and 16 deletions

View file

@ -140,6 +140,7 @@ videoChannelRouter.get('/:nameWithHost',
)
videoChannelRouter.get('/:nameWithHost/video-playlists',
optionalAuthenticate,
asyncMiddleware(videoChannelsNameWithHostValidator),
paginationValidator,
videoPlaylistsSortValidator,
@ -372,7 +373,10 @@ async function listVideoChannelPlaylists (req: express.Request, res: express.Res
const serverActor = await getServerActor()
const resultList = await VideoPlaylistModel.listForApi({
followerActorId: serverActor.id,
followerActorId: isUserAbleToSearchRemoteURI(res)
? null
: serverActor.id,
start: req.query.start,
count: req.query.count,
sort: req.query.sort,