aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pubstream.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-17 21:30:19 -0800
committerzotlabs <mike@macgirvin.com>2018-01-17 21:30:19 -0800
commiteb86ffefbfb38cf76316940a6aa164530f9b9348 (patch)
treede09e4dc1c7d10f5fde80e3d51beb4ba1add8fc2 /Zotlabs/Module/Pubstream.php
parentf1afb0ddfec8ed90332e5f6b2f0c74e338727094 (diff)
downloadvolse-hubzilla-eb86ffefbfb38cf76316940a6aa164530f9b9348.tar.gz
volse-hubzilla-eb86ffefbfb38cf76316940a6aa164530f9b9348.tar.bz2
volse-hubzilla-eb86ffefbfb38cf76316940a6aa164530f9b9348.zip
provide local pubstream option (content from this site only).
Diffstat (limited to 'Zotlabs/Module/Pubstream.php')
-rw-r--r--Zotlabs/Module/Pubstream.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/Zotlabs/Module/Pubstream.php b/Zotlabs/Module/Pubstream.php
index c469a0eca..2c25e2ce0 100644
--- a/Zotlabs/Module/Pubstream.php
+++ b/Zotlabs/Module/Pubstream.php
@@ -17,9 +17,16 @@ class Pubstream extends \Zotlabs\Web\Controller {
return login();
}
- $disable_discover_tab = get_config('system','disable_discover_tab') || get_config('system','disable_discover_tab') === false;
- if($disable_discover_tab)
- return;
+ $site_firehose = ((intval(get_config('system','site_firehose',0))) ? true : false);
+ $net_firehose = ((get_config('system','disable_discover_tab',1)) ? false : true);
+
+ if(! ($site_firehose || $net_firehose)) {
+ return '';
+ }
+
+ if($net_firehose) {
+ $site_firehose = false;
+ }
$mid = ((x($_REQUEST,'mid')) ? $_REQUEST['mid'] : '');
@@ -142,7 +149,7 @@ class Pubstream extends \Zotlabs\Web\Controller {
require_once('include/channel.php');
require_once('include/security.php');
- if(get_config('system','site_firehose')) {
+ if($site_firehose) {
$uids = " and item.uid in ( " . stream_perms_api_uids(PERMS_PUBLIC) . " ) and item_private = 0 and item_wall = 1 ";
}
else {