From 7d4e07df795009115baa7d3fa99ed4e58805dd56 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 23 May 2021 19:17:09 +0200 Subject: 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 --- Zotlabs/Module/Item.php | 8 ++++---- 1 file 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))) { -- cgit v1.2.3