}
// Only keep activities we are able to process
- logger.debug('Filtering activities...', { activities })
+ logger.debug('Filtering %d activities...', activities.length)
activities = activities.filter(a => isActivityValid(a))
logger.debug('We keep %d activities.', activities.length, { activities })
const accountsInvolvedInVideo = await getAccountsInvolvedInVideo(video, t)
const audience = getOriginVideoAudience(video, accountsInvolvedInVideo)
const dislikeActivity = createDislikeActivityData(byAccount, video)
- const object = await createActivityData(undoUrl, byAccount, dislikeActivity, t, audience)
+ const object = await createActivityData(undoUrl, byAccount, dislikeActivity, t)
- const data = await undoActivityData(undoUrl, byAccount, object, t)
+ const data = await undoActivityData(undoUrl, byAccount, object, t, audience)
return unicastTo(data, byAccount, video.VideoChannel.Account.sharedInboxUrl, t)
}
body('').custom((value, { req }) => isRootActivityValid(req.body)),
(req: express.Request, res: express.Response, next: express.NextFunction) => {
- logger.debug('Checking activity pub parameters', { parameters: req.body })
+ logger.debug('Checking activity pub parameters')
if (areValidationErrors(req, res)) return