diff options
author | Mario <mario@mariovavti.com> | 2024-07-10 08:40:51 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-07-10 08:40:51 +0000 |
commit | d2b06995c7bf14f0ba972099f6bfcd264d4ed0af (patch) | |
tree | b49b376f0d19450402fe10ec9899e5e7fa6010f1 /Zotlabs/Module/Sse.php | |
parent | 5cbae0fb81078a60c9fa507be9c725856d7ecb29 (diff) | |
download | volse-hubzilla-d2b06995c7bf14f0ba972099f6bfcd264d4ed0af.tar.gz volse-hubzilla-d2b06995c7bf14f0ba972099f6bfcd264d4ed0af.tar.bz2 volse-hubzilla-d2b06995c7bf14f0ba972099f6bfcd264d4ed0af.zip |
more work on making sure system notifications appear on page reload
Diffstat (limited to 'Zotlabs/Module/Sse.php')
-rw-r--r-- | Zotlabs/Module/Sse.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php index 41ff24352..ae8860cd2 100644 --- a/Zotlabs/Module/Sse.php +++ b/Zotlabs/Module/Sse.php @@ -138,6 +138,7 @@ class Sse extends Controller { flush(); XConfig::Set(self::$ob_hash, 'sse', 'timestamp', NULL_DATE); + XConfig::Set(self::$ob_hash, 'sse', 'notifications', []); exit; } @@ -145,12 +146,12 @@ class Sse extends Controller { ob_flush(); flush(); + usleep($sleep); + if ($result) { XConfig::Set(self::$ob_hash, 'sse', 'notifications', []); } - usleep($sleep); - $i++; } |