From 69d9ec9a948be459886008f21b40f726cf74d8c4 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 8 Jul 2013 22:27:55 -0700 Subject: This should fix some of the remote permissions issues --- include/ConversationObject.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/ConversationObject.php') diff --git a/include/ConversationObject.php b/include/ConversationObject.php index e3b46ca3f..3f5e901d3 100644 --- a/include/ConversationObject.php +++ b/include/ConversationObject.php @@ -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); -- cgit v1.2.3