Fix bad to/cc when undo dislike
This commit is contained in:
parent
f00984c007
commit
fef2c7164e
|
@ -44,7 +44,7 @@ async function inboxController (req: express.Request, res: express.Response, nex
|
|||
}
|
||||
|
||||
// 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 })
|
||||
|
||||
|
|
|
@ -67,9 +67,9 @@ async function sendUndoDislikeToOrigin (byAccount: AccountInstance, video: Video
|
|||
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)
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ const activityPubValidator = [
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue