]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/HTTPSignature.php
Merge pull request #5862 from nupplaphil/rename_App_Methods
[friendica.git] / src / Util / HTTPSignature.php
index 7adaa82f780e17e6b7f32042f8e0c1b2bf420491..494d6e0e65a2761692f7f2bbc677fbb6db29942b 100644 (file)
@@ -265,7 +265,7 @@ class HTTPSignature
                return '';
        }
 
-       /**
+       /*
         * Functions for ActivityPub
         */
 
@@ -303,7 +303,7 @@ class HTTPSignature
                $headers[] = 'Content-Type: application/activity+json';
 
                Network::post($target, $content, $headers);
-               $return_code = BaseObject::getApp()->get_curl_code();
+               $return_code = BaseObject::getApp()->getCurlCode();
 
                logger('Transmit to ' . $target . ' returned ' . $return_code);
        }
@@ -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']];