diff options
Diffstat (limited to 'server/controllers/activitypub/inbox.ts')
-rw-r--r-- | server/controllers/activitypub/inbox.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/controllers/activitypub/inbox.ts b/server/controllers/activitypub/inbox.ts index eedb518b9..e62125d85 100644 --- a/server/controllers/activitypub/inbox.ts +++ b/server/controllers/activitypub/inbox.ts | |||
@@ -30,7 +30,7 @@ inboxRouter.post('/inbox', | |||
30 | asyncMiddleware(inboxController) | 30 | asyncMiddleware(inboxController) |
31 | ) | 31 | ) |
32 | 32 | ||
33 | inboxRouter.post('/:nameWithHost/inbox', | 33 | inboxRouter.post('/account/:name/inbox', |
34 | signatureValidator, | 34 | signatureValidator, |
35 | asyncMiddleware(checkSignature), | 35 | asyncMiddleware(checkSignature), |
36 | localAccountValidator, | 36 | localAccountValidator, |
@@ -59,7 +59,9 @@ async function inboxController (req: express.Request, res: express.Response, nex | |||
59 | } | 59 | } |
60 | 60 | ||
61 | // Only keep activities we are able to process | 61 | // Only keep activities we are able to process |
62 | logger.debug('Filtering activities...', { activities }) | ||
62 | activities = activities.filter(a => isActivityValid(a)) | 63 | activities = activities.filter(a => isActivityValid(a)) |
64 | logger.debug('We keep %d activities.', activities.length, { activities }) | ||
63 | 65 | ||
64 | await processActivities(activities, res.locals.account) | 66 | await processActivities(activities, res.locals.account) |
65 | 67 | ||