Merge pull request #8459 from annando/ap-loop

Prevent another endless loop while fetching AP items
This commit is contained in:
Tobias Diekershoff 2020-03-28 14:06:19 +01:00 committed by GitHub
commit b791966f93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,7 +234,7 @@ class ActivityPub
} elseif (!empty($data['first']) && is_string($data['first']) && ($data['first'] != $url)) {
return self::fetchItems($data['first'], $uid);
} else {
$items = [];
return [];
}
if (!empty($data['next']) && is_string($data['next'])) {