diff options
author | Mario <mario@mariovavti.com> | 2022-03-23 19:01:42 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-03-23 19:01:42 +0000 |
commit | 62ac0ff21ecf8292e55722cdcdce08fa8bbdb87d (patch) | |
tree | 7b175f97a5e0f3281bfb783d6055ad61e62289f3 /include/items.php | |
parent | a41c7caa182117b2b7b820550cc20dff8be2c0f0 (diff) | |
download | volse-hubzilla-62ac0ff21ecf8292e55722cdcdce08fa8bbdb87d.tar.gz volse-hubzilla-62ac0ff21ecf8292e55722cdcdce08fa8bbdb87d.tar.bz2 volse-hubzilla-62ac0ff21ecf8292e55722cdcdce08fa8bbdb87d.zip |
streamline comment policy with downstream
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/include/items.php b/include/items.php index 10a5a3385..8a2faa623 100644 --- a/include/items.php +++ b/include/items.php @@ -1073,21 +1073,6 @@ function encode_item($item,$mirror = false,$zap_compat = false) { $x['type'] = 'activity'; $x['encoding'] = 'zot'; - $r = q("select channel_id from channel where channel_id = %d limit 1", - intval($item['uid']) - ); - - if($r) - $comment_scope = PermissionLimits::Get($item['uid'],'post_comments'); - else - $comment_scope = 0; - - $scope = $item['public_policy']; - if(! $scope) - $scope = 'public'; - - $c_scope = map_scope($comment_scope); - $key = get_config('system','prvkey'); // If we're trying to backup an item so that it's recoverable or for export/imprt, @@ -1180,10 +1165,7 @@ function encode_item($item,$mirror = false,$zap_compat = false) { $x['public_scope'] = $scope; - if($item['item_nocomment']) - $x['comment_scope'] = 'none'; - else - $x['comment_scope'] = $c_scope; + $x['comment_scope'] = $item['comment_policy']; if(! empty($item['term'])) $x['tags'] = encode_item_terms($item['term'],$mirror); |