diff options
author | Mario <mario@mariovavti.com> | 2019-11-12 10:11:58 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-11-12 10:11:58 +0000 |
commit | 209d06a8f795282ddf370dff8228d2385004d05a (patch) | |
tree | 062f58940c8de3efea6a331996c580916ac69688 /Zotlabs/Module | |
parent | 4a6d050e22c7bfd4c2ae0bb2ff79bedefba33f47 (diff) | |
download | volse-hubzilla-209d06a8f795282ddf370dff8228d2385004d05a.tar.gz volse-hubzilla-209d06a8f795282ddf370dff8228d2385004d05a.tar.bz2 volse-hubzilla-209d06a8f795282ddf370dff8228d2385004d05a.zip |
better detection for who to send sys notifications (needs addons update)
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Sse.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Sse_bs.php | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php index 97fee5f49..6f7e9543a 100644 --- a/Zotlabs/Module/Sse.php +++ b/Zotlabs/Module/Sse.php @@ -84,6 +84,7 @@ class Sse extends Controller { echo "\n\n"; del_xconfig(self::$ob_hash, 'sse', 'notifications'); + set_xconfig(self::$ob_hash, 'sse', 'timestamp', datetime_convert()); unset($result); } @@ -96,6 +97,7 @@ class Sse extends Controller { flush(); if(connection_status() != CONNECTION_NORMAL || connection_aborted()) { + del_xconfig(self::$ob_hash, 'sse', 'timestamp'); break; } diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php index 672a6c5ef..c591a00bf 100644 --- a/Zotlabs/Module/Sse_bs.php +++ b/Zotlabs/Module/Sse_bs.php @@ -27,6 +27,9 @@ class Sse_bs extends Controller { self::$offset = 0; self::$xchans = ''; + if(self::$ob_hash) + set_xconfig(self::$ob_hash, 'sse', 'timestamp', datetime_convert()); + if(!empty($_GET['nquery']) && $_GET['nquery'] !== '%') { $nquery = $_GET['nquery']; |