hopefully(?) the final word on remote comment permissions
This commit is contained in:
parent
43e290f4c0
commit
fd2379530c
@ -63,6 +63,7 @@ function collect_recipients($item,&$private) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
function can_comment_on_post($observer_xchan,$item) {
|
||||
if(! $observer_xchan)
|
||||
return false;
|
||||
@ -84,9 +85,6 @@ function can_comment_on_post($observer_xchan,$item) {
|
||||
if(($item['owner']['abook_xchan']) && ($item['owner']['abook_their_perms'] & PERMS_W_COMMENT))
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -135,6 +135,9 @@ function item_post(&$a) {
|
||||
goaway($a->get_baseurl() . "/" . $return_path );
|
||||
killme();
|
||||
}
|
||||
|
||||
// can_comment_on_post() needs info from the following xchan_query
|
||||
xchan_query($r);
|
||||
$parent_item = $r[0];
|
||||
$parent = $r[0]['id'];
|
||||
|
||||
|
Reference in New Issue
Block a user