]> git.mxchange.org Git - friendica.git/commitdiff
Fixing tests
authorMichael <heluecht@pirati.ca>
Mon, 2 Mar 2020 17:20:18 +0000 (17:20 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 2 Mar 2020 17:20:18 +0000 (17:20 +0000)
include/api.php

index 62c69767f343bd36f0e126e3f32d42f8d58faacc..3a29184ec777589a1778db08ce09e6894a845516 100644 (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);