Merge pull request #14143 from MrPetovan/bug/fatal-errors

Fix wrong return value in Item::gettopLevelParent()
This commit is contained in:
Tobias Diekershoff 2024-05-11 10:01:13 +02:00 committed by GitHub
commit db8cab77c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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']) {