https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72c1989
)
Fixing tests
author
Michael
<heluecht@pirati.ca>
Mon, 2 Mar 2020 17:20:18 +0000
(17:20 +0000)
committer
Michael
<heluecht@pirati.ca>
Mon, 2 Mar 2020 17:20:18 +0000
(17:20 +0000)
include/api.php
patch
|
blob
|
history
diff --git
a/include/api.php
b/include/api.php
index
62c6976
..
3a29184
100644
(file)
--- a/
include/api.php
+++ b/
include/api.php
@@
-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);