diff options
-rw-r--r-- | server/controllers/activitypub/outbox.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/controllers/activitypub/outbox.ts b/server/controllers/activitypub/outbox.ts index c0c0c9d1c..0077e1d0b 100644 --- a/server/controllers/activitypub/outbox.ts +++ b/server/controllers/activitypub/outbox.ts | |||
@@ -3,6 +3,7 @@ import { Activity } from '../../../shared/models/activitypub/activity' | |||
3 | import { VideoPrivacy } from '../../../shared/models/videos' | 3 | import { VideoPrivacy } from '../../../shared/models/videos' |
4 | import { activityPubCollectionPagination } from '../../helpers/activitypub' | 4 | import { activityPubCollectionPagination } from '../../helpers/activitypub' |
5 | import { pageToStartAndCount } from '../../helpers/core-utils' | 5 | import { pageToStartAndCount } from '../../helpers/core-utils' |
6 | import { logger } from '../../helpers/logger' | ||
6 | import { ACTIVITY_PUB } from '../../initializers/constants' | 7 | import { ACTIVITY_PUB } from '../../initializers/constants' |
7 | import { announceActivityData, createActivityData } from '../../lib/activitypub/send' | 8 | import { announceActivityData, createActivityData } from '../../lib/activitypub/send' |
8 | import { buildAudience } from '../../lib/activitypub/send/misc' | 9 | import { buildAudience } from '../../lib/activitypub/send/misc' |
@@ -65,7 +66,10 @@ async function outboxController (req: express.Request, res: express.Response, ne | |||
65 | data: activities, | 66 | data: activities, |
66 | total: data.total | 67 | total: data.total |
67 | } | 68 | } |
68 | const json = activityPubCollectionPagination(account.Actor.url + '/outbox', page, newResult) | 69 | const actorOutboxUrl = account.Actor.url + '/outbox' |
70 | const json = activityPubCollectionPagination(actorOutboxUrl, page, newResult) | ||
71 | |||
72 | logger.info('Receiving outbox request for %s.', actorOutboxUrl) | ||
69 | 73 | ||
70 | return res.json(json).end() | 74 | return res.json(json).end() |
71 | } | 75 | } |