]> git.mxchange.org Git - friendica.git/commitdiff
Prevent another endless loop while fetching AP items
authorMichael <heluecht@pirati.ca>
Sat, 28 Mar 2020 10:34:23 +0000 (10:34 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 28 Mar 2020 10:34:23 +0000 (10:34 +0000)
src/Protocol/ActivityPub.php

index 6f835e7e8fb32befed0a53d90a03e80f6c9068a8..c3168f5509f98b3f5fc7ab6477f81cc32bb97d7e 100644 (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'])) {