This should fix some of the remote permissions issues

This commit is contained in:
friendica 2013-07-08 22:27:55 -07:00
parent 6e012839c9
commit 69d9ec9a94

View File

@ -138,11 +138,14 @@ class Conversation extends BaseObject {
return false;
}
if(local_user() && $item->get_data_value('uid') == local_user())
if(local_user() && $item->get_data_value('uid') == local_user())
$this->commentable = true;
if($this->writable)
$this->commentable = true;
if(($this->observer) && (! $this->writable)) {
$this->commentable = can_comment_on_post($this->observer['xchan_hash'],$item['data']);
$this->commentable = can_comment_on_post($this->observer['xchan_hash'],$item->data);
}
$item->set_conversation($this);