mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update FederationController
This commit is contained in:
parent
0d73a57d75
commit
ff15e0eed1
1 changed files with 3 additions and 0 deletions
|
@ -262,6 +262,9 @@ XML;
|
||||||
if(!$actor) {
|
if(!$actor) {
|
||||||
$actor = Helpers::profileFirstOrNew($bodyDecoded['actor']);
|
$actor = Helpers::profileFirstOrNew($bodyDecoded['actor']);
|
||||||
}
|
}
|
||||||
|
if(!$actor) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$pkey = openssl_pkey_get_public($actor->public_key);
|
$pkey = openssl_pkey_get_public($actor->public_key);
|
||||||
$inboxPath = "/users/{$profile->username}/inbox";
|
$inboxPath = "/users/{$profile->username}/inbox";
|
||||||
list($verified, $headers) = HTTPSignature::verify($pkey, $signatureData, $request->headers->all(), $inboxPath, $body);
|
list($verified, $headers) = HTTPSignature::verify($pkey, $signatureData, $request->headers->all(), $inboxPath, $body);
|
||||||
|
|
Loading…
Add table
Reference in a new issue