diff options
author | Mario <mario@mariovavti.com> | 2024-07-20 13:08:31 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-07-20 13:08:31 +0000 |
commit | c47900f36684c0d7e470240a6d7c1f26cefb4e81 (patch) | |
tree | f9b952d8b507cd5d3d6d3bb4d1b8f418710b91e9 /Zotlabs | |
parent | 84f64214c399df5ec9cac547fcaddcf08bb55a96 (diff) | |
download | volse-hubzilla-c47900f36684c0d7e470240a6d7c1f26cefb4e81.tar.gz volse-hubzilla-c47900f36684c0d7e470240a6d7c1f26cefb4e81.tar.bz2 volse-hubzilla-c47900f36684c0d7e470240a6d7c1f26cefb4e81.zip |
Revert "sse: more work on notifications"
This reverts commit 82f69018a6acc2b97a1b8871c2cddd625db6798a
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; |