1
0
Fork 0
mirror of https://git.friendi.ca/friendica/friendica.git synced 2025-08-22 21:44:01 +00:00

Merge remote-tracking branch 'upstream/develop' into legacy-oauth-removed

This commit is contained in:
Michael 2021-07-20 17:44:05 +00:00
commit a8fb90f42f

View file

@ -330,6 +330,11 @@ class APContact
$outbox = ActivityPub::fetchContent($apcontact['outbox']);
}
if (!empty($outbox['totalItems'])) {
// Mastodon seriously allows for this condition?
// Jul 20 2021 - See https://chaos.social/@m11 for a negative posts count
if ($outbox['totalItems'] < 0) {
$outbox['totalItems'] = 0;
}
$apcontact['statuses_count'] = $outbox['totalItems'];
}
}