Merge branch 'apcontact-no-normalize' of github.com:annando/friendica into apcontact-no-normalize
This commit is contained in:
commit
96ae7ce525
|
@ -256,29 +256,23 @@ class APContact
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($apcontact['following'])) {
|
if (!empty($apcontact['following'])) {
|
||||||
$content = ActivityPub::fetchContent($apcontact['following']);
|
$following = ActivityPub::fetchContent($apcontact['following']);
|
||||||
if (!empty($content)) {
|
if (!empty($following['totalItems'])) {
|
||||||
if (!empty($content['totalItems'])) {
|
$apcontact['following_count'] = $following['totalItems'];
|
||||||
$apcontact['following_count'] = $content['totalItems'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($apcontact['followers'])) {
|
if (!empty($apcontact['followers'])) {
|
||||||
$content = ActivityPub::fetchContent($apcontact['followers']);
|
$followers = ActivityPub::fetchContent($apcontact['followers']);
|
||||||
if (!empty($content)) {
|
if (!empty($followers['totalItems'])) {
|
||||||
if (!empty($content['totalItems'])) {
|
$apcontact['followers_count'] = $followers['totalItems'];
|
||||||
$apcontact['followers_count'] = $content['totalItems'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($apcontact['outbox'])) {
|
if (!empty($apcontact['outbox'])) {
|
||||||
$content = ActivityPub::fetchContent($apcontact['outbox']);
|
$outbox = ActivityPub::fetchContent($apcontact['outbox']);
|
||||||
if (!empty($content)) {
|
if (!empty($outbox['totalItems'])) {
|
||||||
if (!empty($content['totalItems'])) {
|
$apcontact['statuses_count'] = $outbox['totalItems'];
|
||||||
$apcontact['statuses_count'] = $content['totalItems'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue