Merge pull request #8459 from annando/ap-loop
Prevent another endless loop while fetching AP items
This commit is contained in:
commit
b791966f93
|
@ -234,7 +234,7 @@ class ActivityPub
|
||||||
} elseif (!empty($data['first']) && is_string($data['first']) && ($data['first'] != $url)) {
|
} elseif (!empty($data['first']) && is_string($data['first']) && ($data['first'] != $url)) {
|
||||||
return self::fetchItems($data['first'], $uid);
|
return self::fetchItems($data['first'], $uid);
|
||||||
} else {
|
} else {
|
||||||
$items = [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($data['next']) && is_string($data['next'])) {
|
if (!empty($data['next']) && is_string($data['next'])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user