provide option to block the public stream unless authenticated, since there could be legal issues with unmoderated content

This commit is contained in:
zotlabs
2018-02-14 15:32:33 -08:00
parent 24da5d82db
commit 465d89129c
8 changed files with 41 additions and 12 deletions

View File

@@ -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);