Merge branch '459-activitypub-integration' of ssh://numinibsd/git/base/enigma-bbs into 459-activitypub-integration
This commit is contained in:
commit
ea3d2cffec
|
@ -801,23 +801,24 @@ exports.getModule = class ActivityPubWebHandler extends WebHandlerModule {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (signature.keyId !== pubKey.id) {
|
||||
this.log.warn(
|
||||
{
|
||||
actorId: actor.id,
|
||||
signatureKeyId: signature.keyId,
|
||||
actorPubKeyId: pubKey.id,
|
||||
},
|
||||
'Key ID mismatch'
|
||||
);
|
||||
return false;
|
||||
}
|
||||
// if (signature.keyId !== pubKey.id) {
|
||||
// this.log.warn(
|
||||
// {
|
||||
// actorId: actor.id,
|
||||
// signatureKeyId: signature.keyId,
|
||||
// actorPubKeyId: pubKey.id,
|
||||
// },
|
||||
// 'Key ID mismatch'
|
||||
// );
|
||||
// return false;
|
||||
// }
|
||||
|
||||
if (!httpSignature.verifySignature(signature, pubKey.publicKeyPem)) {
|
||||
this.log.warn(
|
||||
{
|
||||
actorId: actor.id,
|
||||
keyId: signature.keyId,
|
||||
actorPubKeyId: pubKey.id,
|
||||
},
|
||||
'Actor signature verification failed'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue