X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Factivitypub%2Fclient.ts;h=1982e171deae04b7a60a8c0b38fa396cf2d1bc14;hb=7d9ba5c08999c6482f0bc5e0c09c6f55b7724090;hp=356da7882770554c98b8771881fd0680183fb942;hpb=55d5fbc583f872b9890698322c5b03c62f371640;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts index 356da7882..1982e171d 100644 --- a/server/controllers/activitypub/client.ts +++ b/server/controllers/activitypub/client.ts @@ -30,7 +30,7 @@ import { videoFileRedundancyGetValidator, videoPlaylistRedundancyGetValidator } import { videoPlaylistElementAPGetValidator, videoPlaylistsGetValidator } from '../../middlewares/validators/videos/video-playlists' import { AccountModel } from '../../models/account/account' import { AccountVideoRateModel } from '../../models/account/account-video-rate' -import { ActorFollowModel } from '../../models/activitypub/actor-follow' +import { ActorFollowModel } from '../../models/actor/actor-follow' import { VideoModel } from '../../models/video/video' import { VideoCaptionModel } from '../../models/video/video-caption' import { VideoCommentModel } from '../../models/video/video-comment' @@ -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