aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pubstream.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-01-22 09:34:08 +0100
committerGitHub <noreply@github.com>2018-01-22 09:34:08 +0100
commit131baa9f4584b74ab76328d776c0bb5ce603da7d (patch)
treec962a68dbf7874e326f4ca268fe0183ac184ea12 /Zotlabs/Module/Pubstream.php
parent8e475810a74f738fe3b23648b904639e5099d995 (diff)
parent1709dbd376af3171815f25b7055fb41da53924cb (diff)
downloadvolse-hubzilla-131baa9f4584b74ab76328d776c0bb5ce603da7d.tar.gz
volse-hubzilla-131baa9f4584b74ab76328d776c0bb5ce603da7d.tar.bz2
volse-hubzilla-131baa9f4584b74ab76328d776c0bb5ce603da7d.zip
Merge pull request #10 from redmatrix/dev
Dev
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 {