aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-05-23 19:17:09 +0200
committerMario Vavti <mario@mariovavti.com>2021-05-23 19:17:09 +0200
commit7d4e07df795009115baa7d3fa99ed4e58805dd56 (patch)
tree376851dd48529b8caa16bb3997a831c6d7e303e2 /Zotlabs
parent8211bc09d4ecb9af530826a105a1bd102feb9f2e (diff)
downloadvolse-hubzilla-7d4e07df795009115baa7d3fa99ed4e58805dd56.tar.gz
volse-hubzilla-7d4e07df795009115baa7d3fa99ed4e58805dd56.tar.bz2
volse-hubzilla-7d4e07df795009115baa7d3fa99ed4e58805dd56.zip
AccessList::is_private() does not return info about the private state (1 or 2). Use the info from the parent item until this will be sorted out
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Item.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index ff52babf5..73a943039 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -745,10 +745,10 @@ class Item extends Controller {
if($parent_item) {
$acl->set($parent_item);
- $private = intval($acl->is_private() || $parent_item['item_private']);
- $public_policy = $parent_item['public_policy'];
- $owner_hash = $parent_item['owner_xchan'];
- $webpage = $parent_item['item_type'];
+ $private = intval($parent_item['item_private']);
+ $public_policy = $parent_item['public_policy'];
+ $owner_hash = $parent_item['owner_xchan'];
+ $webpage = $parent_item['item_type'];
}
if((! $allow_empty) && (! strlen($body))) {