]> git.mxchange.org Git - friendica.git/commitdiff
Add ActivityPub related fields to the "uri" function
authorMichael <heluecht@pirati.ca>
Mon, 8 Jul 2019 12:00:11 +0000 (12:00 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 8 Jul 2019 12:00:11 +0000 (12:00 +0000)
src/Network/Probe.php
src/Protocol/ActivityPub.php

index fae6f8c93e00ec6248977f3dcc6bb27b9ed5e03d..0094609b26fab1c9fa9b14d5f2b02c7f9345026e 100644 (file)
@@ -48,6 +48,7 @@ class Probe
                $fields = ["name", "nick", "guid", "url", "addr", "alias", "photo",
                                "account-type", "community", "keywords", "location", "about",
                                "batch", "notify", "poll", "request", "confirm", "poco",
+                               "following", "followers", "inbox", "outbox", "sharedinbox",
                                "priority", "network", "pubkey", "baseurl"];
 
                $newdata = [];
index 42b5de9e211cfb6b0ddeddd8ffddba1b24774120..6c7bbb4745c488f87bec60b9b421dacf6043f9c8 100644 (file)
@@ -137,6 +137,11 @@ class ActivityPub
                $profile['url'] = $apcontact['url'];
                $profile['addr'] = $apcontact['addr'];
                $profile['alias'] = $apcontact['alias'];
+               $profile['following'] = $apcontact['following'];
+               $profile['followers'] = $apcontact['followers'];
+               $profile['inbox'] = $apcontact['inbox'];
+               $profile['outbox'] = $apcontact['outbox'];
+               $profile['sharedinbox'] = $apcontact['sharedinbox'];
                $profile['photo'] = $apcontact['photo'];
                $profile['account-type'] = self::getAccountType($apcontact);
                $profile['community'] = ($profile['account-type'] == User::ACCOUNT_TYPE_COMMUNITY);