aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-20 10:14:49 +0000
committerMario <mario@mariovavti.com>2021-05-20 10:14:49 +0000
commit33d2a852c99bc1c230abeed7d3be1bb0f4c89212 (patch)
treefde50cef63ae4eee114c854d5f172fd2927e3540 /include
parent8fe00d428d830fd4cf84473c0f441bf73f646eab (diff)
downloadvolse-hubzilla-33d2a852c99bc1c230abeed7d3be1bb0f4c89212.tar.gz
volse-hubzilla-33d2a852c99bc1c230abeed7d3be1bb0f4c89212.tar.bz2
volse-hubzilla-33d2a852c99bc1c230abeed7d3be1bb0f4c89212.zip
make sure to set the correct item_private state
Diffstat (limited to 'include')
-rw-r--r--include/items.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 29160c01d..30129b0aa 100644
--- a/include/items.php
+++ b/include/items.php
@@ -726,7 +726,8 @@ function get_item_elements($x,$allow_code = false) {
$arr['term'] = decode_tags($x['tags']);
$arr['iconfig'] = decode_item_meta($x['meta']);
- $arr['item_private'] = ((array_key_exists('flags',$x) && is_array($x['flags']) && in_array('private',$x['flags'])) ? 1 : 0);
+ $private_state = (($x['allow_cid'] && !$x['allow_gid']) ? 2 : 1);
+ $arr['item_private'] = ((array_key_exists('flags',$x) && is_array($x['flags']) && in_array('private',$x['flags'])) ? $private_state : 0);
$arr['item_flags'] = 0;