]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub.php
Merge pull request #13623 from annando/relay-processing
[friendica.git] / src / Protocol / ActivityPub.php
index 522a874fe2bd2842e21efd3b5cb076f874739a7a..c27506ec1ef310501a6a377fef39d4b248f3d190 100644 (file)
@@ -105,19 +105,6 @@ class ActivityPub
                return $isrequest;
        }
 
-       /**
-        * Fetches ActivityPub content from the given url
-        *
-        * @param string  $url content url
-        * @param integer $uid User ID for the signature
-        * @return array
-        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
-        */
-       public static function fetchContent(string $url, int $uid = 0): array
-       {
-               return HTTPSignature::fetch($url, $uid);
-       }
-
        private static function getAccountType(array $apcontact): int
        {
                $accounttype = -1;
@@ -216,7 +203,7 @@ class ActivityPub
         */
        public static function fetchOutbox(string $url, int $uid)
        {
-               $data = self::fetchContent($url, $uid);
+               $data = HTTPSignature::fetch($url, $uid);
                if (empty($data)) {
                        return;
                }
@@ -255,7 +242,7 @@ class ActivityPub
                        return [];
                }
 
-               $data = self::fetchContent($url, $uid);
+               $data = HTTPSignature::fetch($url, $uid);
                if (empty($data)) {
                        return [];
                }