From 40949483f3e75454fc5542da4c9dbbecda8463e1 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 10 May 2024 21:54:19 -0400 Subject: [PATCH] Fix wrong return value in Item::gettopLevelParent() - Address https://github.com/friendica/friendica/issues/14025#issuecomment-2105033182 --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 2990461627..cf057eed59 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -790,7 +790,7 @@ class Item if (self::hasRestrictions($item, $parent['author-id'], $parent['restrictions'])) { Logger::notice('Restrictions apply - ignoring item', ['restrictions' => $parent['restrictions'], 'verb' => $parent['verb'], 'uri-id' => $item['uri-id'], 'thr-parent-id' => $item['thr-parent-id'], 'uid' => $item['uid']]); - return 0; + return []; } if ($parent['uri-id'] == $parent['parent-uri-id']) {