+ if (!empty($apcontact['following'])) {
+ $data = ActivityPub::fetchContent($apcontact['following']);
+ if (!empty($data)) {
+ if (!empty($data['totalItems'])) {
+ $apcontact['following_count'] = $data['totalItems'];
+ }
+ }
+ }
+
+ if (!empty($apcontact['followers'])) {
+ $data = ActivityPub::fetchContent($apcontact['followers']);
+ if (!empty($data)) {
+ if (!empty($data['totalItems'])) {
+ $apcontact['followers_count'] = $data['totalItems'];
+ }
+ }
+ }
+
+ if (!empty($apcontact['outbox'])) {
+ $data = ActivityPub::fetchContent($apcontact['outbox']);
+ if (!empty($data)) {
+ if (!empty($data['totalItems'])) {
+ $apcontact['statuses_count'] = $data['totalItems'];
+ }
+ }
+ }
+/*
+ $apcontact['inbox'] = JsonLD::fetchElement($compacted, 'ldp:inbox', '@id');
+*/