aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
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