diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-06 21:01:17 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-06 21:01:17 -0800 |
commit | a037590ce30cd34e674a303659888af94a48be09 (patch) | |
tree | 2fd80edff2f013cd21ecedbf02fad2a4b2c95bf4 /include/items.php | |
parent | a18e8e1ede672f8733ef41250099880836efa7f7 (diff) | |
download | volse-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/items.php')
-rwxr-xr-x | include/items.php | 3 |
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']; |