Fix wrong return value in Item::gettopLevelParent()

- Address https://github.com/friendica/friendica/issues/14025#issuecomment-2105033182
pull/14143/head
Hypolite Petovan 2024-05-10 21:54:19 -04:00
parent f566c52624
commit 40949483f3
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ class Item
if (self::hasRestrictions($item, $parent['author-id'], $parent['restrictions'])) { 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']]); 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']) { if ($parent['uri-id'] == $parent['parent-uri-id']) {