aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/activitypub/outbox.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/activitypub/outbox.ts')
-rw-r--r--server/controllers/activitypub/outbox.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/controllers/activitypub/outbox.ts b/server/controllers/activitypub/outbox.ts
index 4175cf276..8c88b6971 100644
--- a/server/controllers/activitypub/outbox.ts
+++ b/server/controllers/activitypub/outbox.ts
@@ -7,7 +7,13 @@ import { VideoPrivacy } from '../../../shared/models/videos'
7import { logger } from '../../helpers/logger' 7import { logger } from '../../helpers/logger'
8import { buildAudience } from '../../lib/activitypub/audience' 8import { buildAudience } from '../../lib/activitypub/audience'
9import { buildAnnounceActivity, buildCreateActivity } from '../../lib/activitypub/send' 9import { buildAnnounceActivity, buildCreateActivity } from '../../lib/activitypub/send'
10import { asyncMiddleware, ensureIsLocalChannel, localAccountValidator, videoChannelsNameWithHostValidator } from '../../middlewares' 10import {
11 activityPubRateLimiter,
12 asyncMiddleware,
13 ensureIsLocalChannel,
14 localAccountValidator,
15 videoChannelsNameWithHostValidator
16} from '../../middlewares'
11import { apPaginationValidator } from '../../middlewares/validators/activitypub' 17import { apPaginationValidator } from '../../middlewares/validators/activitypub'
12import { VideoModel } from '../../models/video/video' 18import { VideoModel } from '../../models/video/video'
13import { activityPubResponse } from './utils' 19import { activityPubResponse } from './utils'
@@ -15,12 +21,14 @@ import { activityPubResponse } from './utils'
15const outboxRouter = express.Router() 21const outboxRouter = express.Router()
16 22
17outboxRouter.get('/accounts/:name/outbox', 23outboxRouter.get('/accounts/:name/outbox',
24 activityPubRateLimiter,
18 apPaginationValidator, 25 apPaginationValidator,
19 localAccountValidator, 26 localAccountValidator,
20 asyncMiddleware(outboxController) 27 asyncMiddleware(outboxController)
21) 28)
22 29
23outboxRouter.get('/video-channels/:nameWithHost/outbox', 30outboxRouter.get('/video-channels/:nameWithHost/outbox',
31 activityPubRateLimiter,
24 apPaginationValidator, 32 apPaginationValidator,
25 asyncMiddleware(videoChannelsNameWithHostValidator), 33 asyncMiddleware(videoChannelsNameWithHostValidator),
26 ensureIsLocalChannel, 34 ensureIsLocalChannel,