diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-20 11:48:59 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-20 11:48:59 +0100 |
commit | 70fdff3d4e140d19587e7ea9e40c021185b06a9a (patch) | |
tree | b13e1386be94e75c9e45c6950acd5769a4ae4577 /server | |
parent | c59eab78052cc8bbe02cb9dd03e8fb525b61fbac (diff) | |
download | PeerTube-70fdff3d4e140d19587e7ea9e40c021185b06a9a.tar.gz PeerTube-70fdff3d4e140d19587e7ea9e40c021185b06a9a.tar.zst PeerTube-70fdff3d4e140d19587e7ea9e40c021185b06a9a.zip |
Serve AP objects for default account/channel pages
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/activitypub/client.ts | 6 |
1 files 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()) | |||
43 | 43 | ||
44 | // Intercept ActivityPub client requests | 44 | // Intercept ActivityPub client requests |
45 | 45 | ||
46 | activityPubClientRouter.get('/accounts?/:name', | 46 | activityPubClientRouter.get( |
47 | [ '/accounts?/:name', '/accounts?/:name/video-channels' ], | ||
47 | executeIfActivityPub, | 48 | executeIfActivityPub, |
48 | asyncMiddleware(localAccountValidator), | 49 | asyncMiddleware(localAccountValidator), |
49 | accountController | 50 | accountController |
@@ -121,7 +122,8 @@ activityPubClientRouter.get('/videos/watch/:videoId/comments/:commentId/activity | |||
121 | asyncMiddleware(videoCommentController) | 122 | asyncMiddleware(videoCommentController) |
122 | ) | 123 | ) |
123 | 124 | ||
124 | activityPubClientRouter.get('/video-channels/:name', | 125 | activityPubClientRouter.get( |
126 | [ '/video-channels/:name', '/video-channels/:name/videos' ], | ||
125 | executeIfActivityPub, | 127 | executeIfActivityPub, |
126 | asyncMiddleware(localVideoChannelValidator), | 128 | asyncMiddleware(localVideoChannelValidator), |
127 | videoChannelController | 129 | videoChannelController |