Fixing tests

This commit is contained in:
Michael 2020-03-02 17:20:18 +00:00
parent 72c198990e
commit 3a6d3cd439
1 changed files with 1 additions and 1 deletions

View File

@ -783,7 +783,7 @@ function api_item_get_user(App $a, $item)
$author_user = $status_user;
$status_user["protected"] = $item['private'] == Item::PRIVATE;
$status_user["protected"] = isset($item['private']) && ($item['private'] == Item::PRIVATE);
if (($item['thr-parent'] ?? '') == ($item['uri'] ?? '')) {
$owner_user = api_get_user($a, $item['owner-id'] ?? null);