do not ask for null image
This commit is contained in:
@@ -211,7 +211,10 @@ const Helpers = {
|
||||
log.info(`Actor ${req.body.actor} not found`)
|
||||
return res.status(401).send('Actor not found')
|
||||
}
|
||||
if (httpSignature.verifySignature(parsed, user.object.publicKey.publicKeyPem)) { return next() }
|
||||
if (httpSignature.verifySignature(parsed, user.object.publicKey.publicKeyPem)) {
|
||||
log.debug(`Valid signature from ${req.body.actor} `)
|
||||
return next()
|
||||
}
|
||||
|
||||
// still not valid
|
||||
log.info(`Invalid signature from user ${req.body.actor}`)
|
||||
|
||||
Reference in New Issue
Block a user