diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-27 11:06:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-27 11:06:43 +0100 |
commit | 0a8ae68459ecfd388bdd17cb23dd3c9c1b148e6c (patch) | |
tree | 197c77ed098da7b589bcb02ff61e0c785491f100 | |
parent | 4001b3bc6c6e8bcd7a2076c6d654a258fe656548 (diff) | |
download | PeerTube-0a8ae68459ecfd388bdd17cb23dd3c9c1b148e6c.tar.gz PeerTube-0a8ae68459ecfd388bdd17cb23dd3c9c1b148e6c.tar.zst PeerTube-0a8ae68459ecfd388bdd17cb23dd3c9c1b148e6c.zip |
Add log when fetching the outbox
-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 | } |