From: Michael Date: Mon, 8 Jul 2019 12:00:11 +0000 (+0000) Subject: Add ActivityPub related fields to the "uri" function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d1435bef6144f517ae4392d200e2eb14114adf1c;p=friendica.git Add ActivityPub related fields to the "uri" function --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index fae6f8c93e..0094609b26 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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 = []; diff --git a/src/Protocol/ActivityPub.php b/src/Protocol/ActivityPub.php index 42b5de9e21..6c7bbb4745 100644 --- a/src/Protocol/ActivityPub.php +++ b/src/Protocol/ActivityPub.php @@ -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);