aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-08 22:27:55 -0700
committerfriendica <info@friendica.com>2013-07-08 22:27:55 -0700
commit69d9ec9a948be459886008f21b40f726cf74d8c4 (patch)
tree5bbc926ffbcf1c9a12f7dcd3527ec2c56438c0b3 /include
parent6e012839c9807ce8c3c97bafdca7a36cf5fc58a9 (diff)
downloadvolse-hubzilla-69d9ec9a948be459886008f21b40f726cf74d8c4.tar.gz
volse-hubzilla-69d9ec9a948be459886008f21b40f726cf74d8c4.tar.bz2
volse-hubzilla-69d9ec9a948be459886008f21b40f726cf74d8c4.zip
This should fix some of the remote permissions issues
Diffstat (limited to 'include')
-rw-r--r--include/ConversationObject.php7
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);