From 70fdff3d4e140d19587e7ea9e40c021185b06a9a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Jan 2021 11:48:59 +0100 Subject: [PATCH] Serve AP objects for default account/channel pages --- server/controllers/activitypub/client.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts index 356da7882..1b4acc234 100644 --- a/server/controllers/activitypub/client.ts +++ b/server/controllers/activitypub/client.ts @@ -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 -- 2.41.0