diff options
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Sse.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php index 7be51f864..df4a74f7b 100644 --- a/Zotlabs/Module/Sse.php +++ b/Zotlabs/Module/Sse.php @@ -18,14 +18,21 @@ class Sse extends Controller { public static $sse_enabled; function init() { - // this is important! - session_write_close(); - ignore_user_abort(true); if((observer_prohibited(true))) { killme(); } + if(! intval(Config::Get('system','open_pubstream',1))) { + if(! get_observer_hash()) { + killme(); + } + } + + // this is important! + session_write_close(); + ignore_user_abort(true); + self::$uid = local_channel(); self::$ob_hash = get_observer_hash(); self::$sse_id = false; |