aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-27 11:06:43 +0100
committerChocobozzz <me@florianbigard.com>2018-02-27 11:06:43 +0100
commit0a8ae68459ecfd388bdd17cb23dd3c9c1b148e6c (patch)
tree197c77ed098da7b589bcb02ff61e0c785491f100
parent4001b3bc6c6e8bcd7a2076c6d654a258fe656548 (diff)
downloadPeerTube-0a8ae68459ecfd388bdd17cb23dd3c9c1b148e6c.tar.gz
PeerTube-0a8ae68459ecfd388bdd17cb23dd3c9c1b148e6c.tar.zst
PeerTube-0a8ae68459ecfd388bdd17cb23dd3c9c1b148e6c.zip
Add log when fetching the outbox
-rw-r--r--server/controllers/activitypub/outbox.ts6
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'
3import { VideoPrivacy } from '../../../shared/models/videos' 3import { VideoPrivacy } from '../../../shared/models/videos'
4import { activityPubCollectionPagination } from '../../helpers/activitypub' 4import { activityPubCollectionPagination } from '../../helpers/activitypub'
5import { pageToStartAndCount } from '../../helpers/core-utils' 5import { pageToStartAndCount } from '../../helpers/core-utils'
6import { logger } from '../../helpers/logger'
6import { ACTIVITY_PUB } from '../../initializers/constants' 7import { ACTIVITY_PUB } from '../../initializers/constants'
7import { announceActivityData, createActivityData } from '../../lib/activitypub/send' 8import { announceActivityData, createActivityData } from '../../lib/activitypub/send'
8import { buildAudience } from '../../lib/activitypub/send/misc' 9import { 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}