diff options
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 |