[ActivityPub][Inbox] Signature verification after Actor update would always fail

This commit is contained in:
Diogo Cordeiro 2020-06-28 00:49:55 +01:00 committed by Diogo Peralta Cordeiro
parent f93d8694c3
commit 78f0ab022c

View File

@ -106,7 +106,7 @@ class apInboxAction extends ManagedAction
ActivityPubReturn::error(json_encode($signatureData, true), 400);
}
list($verified, $headers) = HTTPSignature::verify($actor_public_key, $signatureData, $headers, $path, $body);
list($verified, /*$headers*/) = HTTPSignature::verify($actor_public_key, $signatureData, $headers, $path, $body);
// If the signature fails verification the first time, update profile as it might have changed public key
if ($verified !== 1) {