Add ActivityPub related fields to the "uri" function
This commit is contained in:
parent
8146ff1505
commit
d1435bef61
2 changed files with 6 additions and 0 deletions
|
@ -48,6 +48,7 @@ class Probe
|
||||||
$fields = ["name", "nick", "guid", "url", "addr", "alias", "photo",
|
$fields = ["name", "nick", "guid", "url", "addr", "alias", "photo",
|
||||||
"account-type", "community", "keywords", "location", "about",
|
"account-type", "community", "keywords", "location", "about",
|
||||||
"batch", "notify", "poll", "request", "confirm", "poco",
|
"batch", "notify", "poll", "request", "confirm", "poco",
|
||||||
|
"following", "followers", "inbox", "outbox", "sharedinbox",
|
||||||
"priority", "network", "pubkey", "baseurl"];
|
"priority", "network", "pubkey", "baseurl"];
|
||||||
|
|
||||||
$newdata = [];
|
$newdata = [];
|
||||||
|
|
|
@ -137,6 +137,11 @@ class ActivityPub
|
||||||
$profile['url'] = $apcontact['url'];
|
$profile['url'] = $apcontact['url'];
|
||||||
$profile['addr'] = $apcontact['addr'];
|
$profile['addr'] = $apcontact['addr'];
|
||||||
$profile['alias'] = $apcontact['alias'];
|
$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['photo'] = $apcontact['photo'];
|
||||||
$profile['account-type'] = self::getAccountType($apcontact);
|
$profile['account-type'] = self::getAccountType($apcontact);
|
||||||
$profile['community'] = ($profile['account-type'] == User::ACCOUNT_TYPE_COMMUNITY);
|
$profile['community'] = ($profile['account-type'] == User::ACCOUNT_TYPE_COMMUNITY);
|
||||||
|
|
Loading…
Reference in a new issue