From cc913bcf7cccb16ea82006bc6f1258697f00ba3c Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 28 Mar 2020 10:34:23 +0000 Subject: [PATCH] Prevent another endless loop while fetching AP items --- src/Protocol/ActivityPub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub.php b/src/Protocol/ActivityPub.php index 6f835e7e8f..c3168f5509 100644 --- a/src/Protocol/ActivityPub.php +++ b/src/Protocol/ActivityPub.php @@ -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'])) { -- 2.39.5