aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-20 11:48:59 +0100
committerChocobozzz <me@florianbigard.com>2021-01-20 11:48:59 +0100
commit70fdff3d4e140d19587e7ea9e40c021185b06a9a (patch)
treeb13e1386be94e75c9e45c6950acd5769a4ae4577 /server/controllers
parentc59eab78052cc8bbe02cb9dd03e8fb525b61fbac (diff)
downloadPeerTube-70fdff3d4e140d19587e7ea9e40c021185b06a9a.tar.gz
PeerTube-70fdff3d4e140d19587e7ea9e40c021185b06a9a.tar.zst
PeerTube-70fdff3d4e140d19587e7ea9e40c021185b06a9a.zip
Serve AP objects for default account/channel pages
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/activitypub/client.ts6
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
46activityPubClientRouter.get('/accounts?/:name', 46activityPubClientRouter.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
124activityPubClientRouter.get('/video-channels/:name', 125activityPubClientRouter.get(
126 [ '/video-channels/:name', '/video-channels/:name/videos' ],
125 executeIfActivityPub, 127 executeIfActivityPub,
126 asyncMiddleware(localVideoChannelValidator), 128 asyncMiddleware(localVideoChannelValidator),
127 videoChannelController 129 videoChannelController