aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-24 14:36:28 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:53 +0100
commitf10336cad0949c301a46c87b7d2b8010999b23bb (patch)
tree5dd2fa5c52158834c62b5f531d83f64f409ec045 /server/controllers
parent63c93323ecdeaa4b6183d75dd3f13469e1ef3ebd (diff)
downloadPeerTube-f10336cad0949c301a46c87b7d2b8010999b23bb.tar.gz
PeerTube-f10336cad0949c301a46c87b7d2b8010999b23bb.tar.zst
PeerTube-f10336cad0949c301a46c87b7d2b8010999b23bb.zip
Check signature is correct with the activity pub actor
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/activitypub/inbox.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/activitypub/inbox.ts b/server/controllers/activitypub/inbox.ts
index 243ae7381..92bd20ddb 100644
--- a/server/controllers/activitypub/inbox.ts
+++ b/server/controllers/activitypub/inbox.ts
@@ -48,7 +48,7 @@ async function inboxController (req: express.Request, res: express.Response, nex
48 activities = activities.filter(a => isActivityValid(a)) 48 activities = activities.filter(a => isActivityValid(a))
49 logger.debug('We keep %d activities.', activities.length, { activities }) 49 logger.debug('We keep %d activities.', activities.length, { activities })
50 50
51 await processActivities(activities, res.locals.account) 51 await processActivities(activities, res.locals.signature.account, res.locals.account)
52 52
53 res.status(204).end() 53 res.status(204).end()
54} 54}