Serve AP objects for default account/channel pages

pull/3628/head
Chocobozzz 2021-01-20 11:48:59 +01:00
parent c59eab7805
commit 70fdff3d4e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,8 @@ activityPubClientRouter.use(cors())
// Intercept ActivityPub client requests // Intercept ActivityPub client requests
activityPubClientRouter.get('/accounts?/:name', activityPubClientRouter.get(
[ '/accounts?/:name', '/accounts?/:name/video-channels' ],
executeIfActivityPub, executeIfActivityPub,
asyncMiddleware(localAccountValidator), asyncMiddleware(localAccountValidator),
accountController accountController
@ -121,7 +122,8 @@ activityPubClientRouter.get('/videos/watch/:videoId/comments/:commentId/activity
asyncMiddleware(videoCommentController) asyncMiddleware(videoCommentController)
) )
activityPubClientRouter.get('/video-channels/:name', activityPubClientRouter.get(
[ '/video-channels/:name', '/video-channels/:name/videos' ],
executeIfActivityPub, executeIfActivityPub,
asyncMiddleware(localVideoChannelValidator), asyncMiddleware(localVideoChannelValidator),
videoChannelController videoChannelController