aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pubstream.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-14 15:32:33 -0800
committerzotlabs <mike@macgirvin.com>2018-02-14 15:32:33 -0800
commit465d89129caaaa0240229f8d6f81d68f26eb60b0 (patch)
tree2d547ae70a283f6cc0c92c10863b6c837f522d4d /Zotlabs/Module/Pubstream.php
parent24da5d82db8316a54ccb41616e0e2acb5d73fc84 (diff)
downloadvolse-hubzilla-465d89129caaaa0240229f8d6f81d68f26eb60b0.tar.gz
volse-hubzilla-465d89129caaaa0240229f8d6f81d68f26eb60b0.tar.bz2
volse-hubzilla-465d89129caaaa0240229f8d6f81d68f26eb60b0.zip
provide option to block the public stream unless authenticated, since there could be legal issues with unmoderated content
Diffstat (limited to 'Zotlabs/Module/Pubstream.php')
-rw-r--r--Zotlabs/Module/Pubstream.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/Zotlabs/Module/Pubstream.php b/Zotlabs/Module/Pubstream.php
index 16a5fdbba..afe53eca7 100644
--- a/Zotlabs/Module/Pubstream.php
+++ b/Zotlabs/Module/Pubstream.php
@@ -12,11 +12,10 @@ class Pubstream extends \Zotlabs\Web\Controller {
if($load)
$_SESSION['loadtime'] = datetime_convert();
-
- if(observer_prohibited(true)) {
- return login();
+ if((observer_prohibited(true)) || (! (intval(get_config('system','open_pubstream',1))) && get_observer_hash())) {
+ return login();
}
-
+
$site_firehose = ((intval(get_config('system','site_firehose',0))) ? true : false);
$net_firehose = ((get_config('system','disable_discover_tab',1)) ? false : true);