mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-20 11:48:31 -06:00
Serve AP objects for default account/channel pages
This commit is contained in:
parent
c59eab7805
commit
70fdff3d4e
@ -43,7 +43,8 @@ activityPubClientRouter.use(cors())
|
||||
|
||||
// Intercept ActivityPub client requests
|
||||
|
||||
activityPubClientRouter.get('/accounts?/:name',
|
||||
activityPubClientRouter.get(
|
||||
[ '/accounts?/:name', '/accounts?/:name/video-channels' ],
|
||||
executeIfActivityPub,
|
||||
asyncMiddleware(localAccountValidator),
|
||||
accountController
|
||||
@ -121,7 +122,8 @@ activityPubClientRouter.get('/videos/watch/:videoId/comments/:commentId/activity
|
||||
asyncMiddleware(videoCommentController)
|
||||
)
|
||||
|
||||
activityPubClientRouter.get('/video-channels/:name',
|
||||
activityPubClientRouter.get(
|
||||
[ '/video-channels/:name', '/video-channels/:name/videos' ],
|
||||
executeIfActivityPub,
|
||||
asyncMiddleware(localVideoChannelValidator),
|
||||
videoChannelController
|
||||
|
Loading…
Reference in New Issue
Block a user