return [];
}
- // If the thread originated from this node, we check the permission against the thread starter
- $condition = ['uri' => $toplevel_parent['uri'], 'wall' => true];
- $localTopLevelParent = self::selectFirst(['uid'], $condition);
- if (!empty($localTopLevelParent['uid']) && !self::isAllowedByUser($item, $localTopLevelParent['uid'])) {
- return [];
- }
-
return $toplevel_parent;
}
return 0;
}
+ // If the thread originated from this node, we check the permission against the thread starter
+ $condition = ['uri' => $toplevel_parent['uri'], 'wall' => true];
+ $localTopLevelParent = self::selectFirst(['uid'], $condition);
+ if (!empty($localTopLevelParent['uid']) && !self::isAllowedByUser($item, $localTopLevelParent['uid'])) {
+ return 0;
+ }
+
$parent_id = $toplevel_parent['id'];
$item['parent-uri'] = $toplevel_parent['uri'];
$item['deleted'] = $toplevel_parent['deleted'];