a couple of "not quite public" fixes

This commit is contained in:
friendica
2014-08-08 15:27:17 -07:00
parent 02b17fd27e
commit e9caf9db6a
2 changed files with 16 additions and 22 deletions

View File

@@ -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'];