aboutsummaryrefslogtreecommitdiffstats
path: root/include/ConversationObject.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-13 20:26:20 -0700
committerfriendica <info@friendica.com>2014-04-13 20:26:20 -0700
commit4feeacb51be1c2fab52a11ce204c5b56935046b9 (patch)
tree2bccfd55c4f328607a1ae963d529d961f73d599e /include/ConversationObject.php
parentbc041bdb77036eba31468278d0a0796c1e354379 (diff)
downloadvolse-hubzilla-4feeacb51be1c2fab52a11ce204c5b56935046b9.tar.gz
volse-hubzilla-4feeacb51be1c2fab52a11ce204c5b56935046b9.tar.bz2
volse-hubzilla-4feeacb51be1c2fab52a11ce204c5b56935046b9.zip
until we can figure out how to allow commenting on the discover page without killing the matrix, just turn it off.
Diffstat (limited to 'include/ConversationObject.php')
-rw-r--r--include/ConversationObject.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ConversationObject.php b/include/ConversationObject.php
index d97438a5d..9bf410358 100644
--- a/include/ConversationObject.php
+++ b/include/ConversationObject.php
@@ -181,6 +181,13 @@ class Conversation extends BaseObject {
$item->set_commentable(can_comment_on_post($this->observer['xchan_hash'],$item->data));
}
+ require_once('include/identity.php');
+ $sys = get_sys_channel();
+
+ if($sys && $item->get_data_value('uid') == $sys['channel_id']) {
+ $item->set_commentable(false);
+ }
+
$item->set_conversation($this);
$this->threads[] = $item;
return end($this->threads);