diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ConversationObject.php | 7 |
1 files changed, 5 insertions, 2 deletions
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); |