revert 36b5f6ac
This commit is contained in:
parent
d882b3274b
commit
0b7365e2db
@ -1560,18 +1560,20 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $
|
|||||||
|
|
||||||
$tag_delivery = tgroup_check($channel['channel_id'],$arr);
|
$tag_delivery = tgroup_check($channel['channel_id'],$arr);
|
||||||
|
|
||||||
if ($arr['mid'] == $arr['parent_mid']){
|
$perm = (($arr['mid'] == $arr['parent_mid']) ? 'send_stream' : 'post_comments');
|
||||||
$perm = 'send_stream';
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
$r = q("select item_owner from item where item.mid == '%s' limit 1",
|
|
||||||
dbesc($arr['parent_mid']));
|
|
||||||
if($channel['channel_hash'] == $r[0]['item_owner'])
|
|
||||||
$perm = 'post_comments';
|
|
||||||
else
|
|
||||||
$perm = 'send_stream';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// if ($arr['mid'] == $arr['parent_mid']){
|
||||||
|
// $perm = 'send_stream';
|
||||||
|
// }
|
||||||
|
// else{
|
||||||
|
// $r = q("select item_owner from item where item.mid = '%s' limit 1",
|
||||||
|
// dbesc($arr['parent_mid']));
|
||||||
|
// if($channel['channel_hash'] == $r[0]['item_owner'])
|
||||||
|
// $perm = 'post_comments';
|
||||||
|
// else
|
||||||
|
// $perm = 'send_stream';
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
|
||||||
// This is our own post, possibly coming from a channel clone
|
// This is our own post, possibly coming from a channel clone
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2015-08-11.1121
|
2015-08-12.1122
|
||||||
|
Reference in New Issue
Block a user