diff options
author | Mario <mario@mariovavti.com> | 2024-12-19 18:49:07 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-12-19 18:49:07 +0000 |
commit | a2dde34b1be35282618035652f919c39199beea1 (patch) | |
tree | 128d7fb247fc463cc5dc403da8ecc1928c138c29 /Zotlabs/Module | |
parent | fb5824417e12710572b8786f1db2e75457819447 (diff) | |
download | volse-hubzilla-a2dde34b1be35282618035652f919c39199beea1.tar.gz volse-hubzilla-a2dde34b1be35282618035652f919c39199beea1.tar.bz2 volse-hubzilla-a2dde34b1be35282618035652f919c39199beea1.zip |
refactor notifications widget and updateConvItems() to not require jquery
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Sse.php | 3 | ||||
-rw-r--r-- | Zotlabs/Module/Sse_bs.php | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php index fda2f2be4..673457db1 100644 --- a/Zotlabs/Module/Sse.php +++ b/Zotlabs/Module/Sse.php @@ -207,10 +207,9 @@ class Sse extends Controller { if ($result) { XConfig::Set(self::$ob_hash, 'sse', 'notifications', []); - json_return_and_die($result); } - killme(); + json_return_and_die($result); } diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php index 09c4ed614..cedd80c59 100644 --- a/Zotlabs/Module/Sse_bs.php +++ b/Zotlabs/Module/Sse_bs.php @@ -22,7 +22,6 @@ class Sse_bs extends Controller { public static $xchans; function init() { - self::$uid = local_channel(); self::$ob_hash = get_observer_hash(); self::$sse_id = false; @@ -43,8 +42,9 @@ class Sse_bs extends Controller { self::$offset = 0; self::$xchans = ''; - if(isset($_REQUEST['sse_rmids'])) - self::mark_read($_REQUEST['sse_rmids']); + if (isset($_REQUEST['sse_rmids'])) { + self::mark_read(explode(',', $_REQUEST['sse_rmids'])); + } if(!empty($_REQUEST['nquery']) && $_REQUEST['nquery'] !== '%') { $nquery = $_REQUEST['nquery']; |