]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong return value in Item::gettopLevelParent()
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 11 May 2024 01:54:19 +0000 (21:54 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 11 May 2024 01:54:19 +0000 (21:54 -0400)
- Address https://github.com/friendica/friendica/issues/14025#issuecomment-2105033182

src/Model/Item.php

index 2990461627657a671dfe5f9b5efb0f00a8fd3fe0..cf057eed59c3d50822deed7b3441165d6b44aac3 100644 (file)
@@ -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']) {