aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadStream.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-27 15:13:02 -0800
committerzotlabs <mike@macgirvin.com>2017-11-27 15:13:02 -0800
commit981631752a7571b22d9d8b3a8d7a6632f0a562a3 (patch)
tree51fb3f6d3a46926e1ea7778d17004f10a288dce7 /Zotlabs/Lib/ThreadStream.php
parent4471f580d7a50126d42690f05e81a75f7bbf8084 (diff)
parentf3c0e212bf824df4f6b69abf079b5b138565f59c (diff)
downloadvolse-hubzilla-981631752a7571b22d9d8b3a8d7a6632f0a562a3.tar.gz
volse-hubzilla-981631752a7571b22d9d8b3a8d7a6632f0a562a3.tar.bz2
volse-hubzilla-981631752a7571b22d9d8b3a8d7a6632f0a562a3.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Lib/ThreadStream.php')
-rw-r--r--Zotlabs/Lib/ThreadStream.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zotlabs/Lib/ThreadStream.php b/Zotlabs/Lib/ThreadStream.php
index bdd2e9657..d0c964149 100644
--- a/Zotlabs/Lib/ThreadStream.php
+++ b/Zotlabs/Lib/ThreadStream.php
@@ -54,6 +54,10 @@ class ThreadStream {
$this->profile_owner = local_channel();
$this->writable = true;
break;
+ case 'pubstream':
+ $this->profile_owner = local_channel();
+ $this->writable = ((local_channel()) ? true : false);
+ break;
case 'hq':
$this->profile_owner = local_channel();
$this->writable = true;
@@ -188,6 +192,10 @@ class ThreadStream {
$item->set_commentable(can_comment_on_post($ob_hash,$item->data));
}
}
+ if($this->mode === 'pubstream' && (! local_channel())) {
+ $item->set_commentable(false);
+ }
+
require_once('include/channel.php');
$item->set_conversation($this);