aboutsummaryrefslogtreecommitdiffstats
path: root/include/ConversationObject.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-28 04:41:12 -0700
committerfriendica <info@friendica.com>2013-09-28 04:41:12 -0700
commit110974eb55d58db26f1312d19ae4cdf09bbc796f (patch)
tree271663f4117bbef5cd26ab45cbad773aaaaa7698 /include/ConversationObject.php
parent8fe557546921661e83a4cf1b0ba31e8bd3b26880 (diff)
downloadvolse-hubzilla-110974eb55d58db26f1312d19ae4cdf09bbc796f.tar.gz
volse-hubzilla-110974eb55d58db26f1312d19ae4cdf09bbc796f.tar.bz2
volse-hubzilla-110974eb55d58db26f1312d19ae4cdf09bbc796f.zip
fix can_comment_on_post when viewing wall-to-wall
Diffstat (limited to 'include/ConversationObject.php')
-rw-r--r--include/ConversationObject.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ConversationObject.php b/include/ConversationObject.php
index 5157dad05..bf4300cb1 100644
--- a/include/ConversationObject.php
+++ b/include/ConversationObject.php
@@ -154,7 +154,10 @@ class Conversation extends BaseObject {
$item->set_commentable(false);
}
elseif(($this->observer) && (! $item->is_commentable())) {
- $item->set_commentable(can_comment_on_post($this->observer['xchan_hash'],$item->data));
+ if((array_key_exists('owner',$item->data)) && ($item->data['owner']['abook_flags'] & ABOOK_FLAG_SELF))
+ $item->set_commentable(perm_is_allowed($this->profile_owner,$this->observer['xchan_hash'],'post_comments'));
+ else
+ $item->set_commentable(can_comment_on_post($this->observer['xchan_hash'],$item->data));
}
$item->set_conversation($this);