]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub.php
Centralized gsid generation
[friendica.git] / src / Protocol / ActivityPub.php
index 6f835e7e8fb32befed0a53d90a03e80f6c9068a8..9d6223a748d4d090d060ef3c97a037c70635a4e3 100644 (file)
@@ -171,6 +171,7 @@ class ActivityPub
                $profile['poll'] = $apcontact['outbox'];
                $profile['pubkey'] = $apcontact['pubkey'];
                $profile['baseurl'] = $apcontact['baseurl'];
+               $profile['gsid'] = $apcontact['gsid'];
 
                // Remove all "null" fields
                foreach ($profile as $field => $content) {
@@ -234,7 +235,7 @@ class ActivityPub
                } elseif (!empty($data['first']) && is_string($data['first']) && ($data['first'] != $url)) {
                        return self::fetchItems($data['first'], $uid);
                } else {
-                       $items = [];
+                       return [];
                }
 
                if (!empty($data['next']) && is_string($data['next'])) {