mirror of
https://github.com/friendica/friendica
synced 2025-05-01 19:44:23 +02:00
Renamed
This commit is contained in:
parent
2fc79e3886
commit
e71f497295
4 changed files with 20 additions and 20 deletions
|
@ -424,12 +424,12 @@ class HTTPSignature
|
|||
{
|
||||
$url = (strpos($id, '#') ? substr($id, 0, strpos($id, '#')) : $id);
|
||||
|
||||
$profile = APContact::getProfileByURL($url);
|
||||
$profile = APContact::getByURL($url);
|
||||
if (!empty($profile)) {
|
||||
logger('Taking key from id ' . $id, LOGGER_DEBUG);
|
||||
return ['url' => $url, 'pubkey' => $profile['pubkey']];
|
||||
} elseif ($url != $actor) {
|
||||
$profile = APContact::getProfileByURL($actor);
|
||||
$profile = APContact::getByURL($actor);
|
||||
if (!empty($profile)) {
|
||||
logger('Taking key from actor ' . $actor, LOGGER_DEBUG);
|
||||
return ['url' => $actor, 'pubkey' => $profile['pubkey']];
|
||||
|
|
|
@ -30,7 +30,7 @@ class LDSignature
|
|||
return false;
|
||||
}
|
||||
|
||||
$profile = APContact::getProfileByURL($actor);
|
||||
$profile = APContact::getByURL($actor);
|
||||
if (empty($profile['pubkey'])) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue