aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
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'];