open_pubstream logic was messy and wrong
This commit is contained in:
parent
7ddf51722c
commit
e6f9f284bf
@ -12,10 +12,16 @@ class Pubstream extends \Zotlabs\Web\Controller {
|
|||||||
if($load)
|
if($load)
|
||||||
$_SESSION['loadtime'] = datetime_convert();
|
$_SESSION['loadtime'] = datetime_convert();
|
||||||
|
|
||||||
if((observer_prohibited(true)) || (! (intval(get_config('system','open_pubstream',1))) && get_observer_hash())) {
|
if((observer_prohibited(true))) {
|
||||||
return login();
|
return login();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(! intval(get_config('system','open_pubstream',1))) {
|
||||||
|
if(! get_observer_hash()) {
|
||||||
|
return login();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$site_firehose = ((intval(get_config('system','site_firehose',0))) ? true : false);
|
$site_firehose = ((intval(get_config('system','site_firehose',0))) ? true : false);
|
||||||
$net_firehose = ((get_config('system','disable_discover_tab',1)) ? false : true);
|
$net_firehose = ((get_config('system','disable_discover_tab',1)) ? false : true);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user