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:02:50 -0800
commit92996e550c5e96495f2caa109b051ed9e04bc93e (patch)
tree9848506aff1ef20519292e05fd0918eeb1ca76ba /include
parentc3c4254882c80bad85f05e174f97d777a11be4a0 (diff)
downloadvolse-hubzilla-92996e550c5e96495f2caa109b051ed9e04bc93e.tar.gz
volse-hubzilla-92996e550c5e96495f2caa109b051ed9e04bc93e.tar.bz2
volse-hubzilla-92996e550c5e96495f2caa109b051ed9e04bc93e.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'];