aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-06 21:01:17 -0800
committerzotlabs <mike@macgirvin.com>2017-03-06 21:01:17 -0800
commita037590ce30cd34e674a303659888af94a48be09 (patch)
tree2fd80edff2f013cd21ecedbf02fad2a4b2c95bf4 /include
parenta18e8e1ede672f8733ef41250099880836efa7f7 (diff)
downloadvolse-hubzilla-a037590ce30cd34e674a303659888af94a48be09.tar.gz
volse-hubzilla-a037590ce30cd34e674a303659888af94a48be09.tar.bz2
volse-hubzilla-a037590ce30cd34e674a303659888af94a48be09.zip
allow post_activity_item to be passed an empty ACL without resetting to channel default
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index a297a1090..36445a46b 100755
--- a/include/items.php
+++ b/include/items.php
@@ -360,7 +360,8 @@ function post_activity_item($arr,$allow_code = false,$deliver = true) {
if(($is_comment) && ($arr['obj_type'] === ACTIVITY_OBJ_NOTE))
$arr['obj_type'] = ACTIVITY_OBJ_COMMENT;
- if(! ($arr['allow_cid'] || $arr['allow_gid'] || $arr['deny_cid'] || $arr['deny_gid'])) {
+ if(! ( array_key_exists('allow_cid',$arr) || array_key_exists('allow_gid',$arr)
+ || array_key_exists('deny_cid',$arr) || array_key_exists('deny_gid',$arr))) {
$arr['allow_cid'] = $channel['channel_allow_cid'];
$arr['allow_gid'] = $channel['channel_allow_gid'];
$arr['deny_cid'] = $channel['channel_deny_cid'];