Follow works
This commit is contained in:
parent
e34c85e527
commit
350e31d6b6
39 changed files with 431 additions and 169 deletions
|
@ -30,7 +30,7 @@ inboxRouter.post('/inbox',
|
|||
asyncMiddleware(inboxController)
|
||||
)
|
||||
|
||||
inboxRouter.post('/:nameWithHost/inbox',
|
||||
inboxRouter.post('/account/:name/inbox',
|
||||
signatureValidator,
|
||||
asyncMiddleware(checkSignature),
|
||||
localAccountValidator,
|
||||
|
@ -59,7 +59,9 @@ async function inboxController (req: express.Request, res: express.Response, nex
|
|||
}
|
||||
|
||||
// Only keep activities we are able to process
|
||||
logger.debug('Filtering activities...', { activities })
|
||||
activities = activities.filter(a => isActivityValid(a))
|
||||
logger.debug('We keep %d activities.', activities.length, { activities })
|
||||
|
||||
await processActivities(activities, res.locals.account)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue