aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-12 21:15:01 +0000
committerMario <mario@mariovavti.com>2019-11-12 21:15:01 +0000
commit6e36820b1bbc35bc3d26ff4eca2b63a386b30462 (patch)
treeb44855dfd9b9618c66183e9ffcb70cb5cefff577 /Zotlabs/Module
parent209d06a8f795282ddf370dff8228d2385004d05a (diff)
downloadvolse-hubzilla-6e36820b1bbc35bc3d26ff4eca2b63a386b30462.tar.gz
volse-hubzilla-6e36820b1bbc35bc3d26ff4eca2b63a386b30462.tar.bz2
volse-hubzilla-6e36820b1bbc35bc3d26ff4eca2b63a386b30462.zip
sse: do not delete xconfig - reset it
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Sse.php5
-rw-r--r--Zotlabs/Module/Sse_bs.php4
2 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php
index 6f7e9543a..3e46a325c 100644
--- a/Zotlabs/Module/Sse.php
+++ b/Zotlabs/Module/Sse.php
@@ -83,7 +83,7 @@ class Sse extends Controller {
echo 'data: ' . json_encode($result);
echo "\n\n";
- del_xconfig(self::$ob_hash, 'sse', 'notifications');
+ set_xconfig(self::$ob_hash, 'sse', 'notifications', []);
set_xconfig(self::$ob_hash, 'sse', 'timestamp', datetime_convert());
unset($result);
}
@@ -97,7 +97,8 @@ class Sse extends Controller {
flush();
if(connection_status() != CONNECTION_NORMAL || connection_aborted()) {
- del_xconfig(self::$ob_hash, 'sse', 'timestamp');
+ //TODO: this does not seem to be triggered
+ set_xconfig(self::$ob_hash, 'sse', 'timestamp', NULL_DATE);
break;
}
diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php
index c591a00bf..c7fcd0542 100644
--- a/Zotlabs/Module/Sse_bs.php
+++ b/Zotlabs/Module/Sse_bs.php
@@ -27,8 +27,10 @@ class Sse_bs extends Controller {
self::$offset = 0;
self::$xchans = '';
- if(self::$ob_hash)
+ if(self::$ob_hash) {
set_xconfig(self::$ob_hash, 'sse', 'timestamp', datetime_convert());
+ set_xconfig(self::$ob_hash, 'sse', 'language', App::$language);
+ }
if(!empty($_GET['nquery']) && $_GET['nquery'] !== '%') {
$nquery = $_GET['nquery'];