1
0
Fork 0
forked from mirror/pixelfed

Update FederationController

This commit is contained in:
Daniel Supernault 2019-03-08 00:10:54 -07:00
parent 0d73a57d75
commit ff15e0eed1
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -262,6 +262,9 @@ XML;
if(!$actor) {
$actor = Helpers::profileFirstOrNew($bodyDecoded['actor']);
}
if(!$actor) {
return false;
}
$pkey = openssl_pkey_get_public($actor->public_key);
$inboxPath = "/users/{$profile->username}/inbox";
list($verified, $headers) = HTTPSignature::verify($pkey, $signatureData, $request->headers->all(), $inboxPath, $body);