From c47900f36684c0d7e470240a6d7c1f26cefb4e81 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 20 Jul 2024 13:08:31 +0000 Subject: Revert "sse: more work on notifications" This reverts commit 82f69018a6acc2b97a1b8871c2cddd625db6798a --- Zotlabs/Module/Sse.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Zotlabs') 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; -- cgit v1.2.3