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:
parent
3f8454ce63
commit
5ef0430dfb
4 changed files with 25 additions and 16 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue