]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Serve AP objects for default account/channel pages
authorChocobozzz <me@florianbigard.com>
Wed, 20 Jan 2021 10:48:59 +0000 (11:48 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 20 Jan 2021 10:48:59 +0000 (11:48 +0100)
server/controllers/activitypub/client.ts

index 356da7882770554c98b8771881fd0680183fb942..1b4acc23496fddc35b6969ec3489e72df4e3ecf7 100644 (file)
@@ -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