diff options
author | friendica <info@friendica.com> | 2014-08-08 15:27:17 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-08 15:27:17 -0700 |
commit | e9caf9db6ab68effb26f7751aa12d5f5de898001 (patch) | |
tree | 163632ae9886892f26a2951251d21be7d12a9c16 /include/items.php | |
parent | 02b17fd27e12518d299912de56517ff3a88a0544 (diff) | |
download | volse-hubzilla-e9caf9db6ab68effb26f7751aa12d5f5de898001.tar.gz volse-hubzilla-e9caf9db6ab68effb26f7751aa12d5f5de898001.tar.bz2 volse-hubzilla-e9caf9db6ab68effb26f7751aa12d5f5de898001.zip |
a couple of "not quite public" fixes
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/include/items.php b/include/items.php index b5c28a453..aa5dd5ea9 100755 --- a/include/items.php +++ b/include/items.php @@ -858,16 +858,15 @@ function encode_item($item) { intval($item['uid']) ); - if($r) { - $public_scope = $r[0]['channel_r_stream']; + if($r) $comment_scope = $r[0]['channel_w_comment']; - } - else { - $public_scope = 0; + else $comment_scope = 0; - } - $scope = map_scope($public_scope); + $scope = $x['public_policy']; + if(! $scope) + $scope = 'public'; + $c_scope = map_scope($comment_scope); if(array_key_exists('item_flags',$item) && ($item['item_flags'] & ITEM_OBSCURED)) { @@ -1846,10 +1845,7 @@ function item_store($arr,$allow_exec = false) { $uplinked_comment = true; } - // if the parent is private, force privacy for the entire conversation - // This differs from the above settings as it subtly allows comments from - // email correspondents to be private even if the overall thread is not. if($r[0]['item_private']) $arr['item_private'] = $r[0]['item_private']; |