Add log when fetching the outbox

This commit is contained in:
Chocobozzz 2018-02-27 11:06:43 +01:00
parent 4001b3bc6c
commit 0a8ae68459
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import { Activity } from '../../../shared/models/activitypub/activity'
import { VideoPrivacy } from '../../../shared/models/videos'
import { activityPubCollectionPagination } from '../../helpers/activitypub'
import { pageToStartAndCount } from '../../helpers/core-utils'
import { logger } from '../../helpers/logger'
import { ACTIVITY_PUB } from '../../initializers/constants'
import { announceActivityData, createActivityData } from '../../lib/activitypub/send'
import { buildAudience } from '../../lib/activitypub/send/misc'
@ -65,7 +66,10 @@ async function outboxController (req: express.Request, res: express.Response, ne
data: activities,
total: data.total
}
const json = activityPubCollectionPagination(account.Actor.url + '/outbox', page, newResult)
const actorOutboxUrl = account.Actor.url + '/outbox'
const json = activityPubCollectionPagination(actorOutboxUrl, page, newResult)
logger.info('Receiving outbox request for %s.', actorOutboxUrl)
return res.json(json).end()
}