diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-11-24 16:42:09 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-11-24 16:42:09 +0100 |
commit | 1e4718eae1c9ce647a34ed13d43d8a0bbe7c42af (patch) | |
tree | 69d03f2cd9747e0f11d1c3129e117497f40a976c /Zotlabs/Module/Sse.php | |
parent | 680cf25f37348d2da978196554e07f1694475763 (diff) | |
download | volse-hubzilla-1e4718eae1c9ce647a34ed13d43d8a0bbe7c42af.tar.gz volse-hubzilla-1e4718eae1c9ce647a34ed13d43d8a0bbe7c42af.tar.bz2 volse-hubzilla-1e4718eae1c9ce647a34ed13d43d8a0bbe7c42af.zip |
do not always trigger a sse event if pubs notification are off or the app is not installed for the channel
Diffstat (limited to 'Zotlabs/Module/Sse.php')
-rw-r--r-- | Zotlabs/Module/Sse.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php index 3dab3d465..f87a19821 100644 --- a/Zotlabs/Module/Sse.php +++ b/Zotlabs/Module/Sse.php @@ -100,9 +100,9 @@ class Sse extends Controller { // We do not have the local_channel in the addon. // Reset pubs here if the app is not installed. if (self::$uid && (!(self::$vnotify & VNOTIFY_PUBS) || !Apps::system_app_installed(self::$uid, 'Public Stream'))) { - $result['pubs']['count'] = 0; - $result['pubs']['notifications'] = []; - $result['pubs']['offset'] = -1; + if (isset($result['pubs'])) { + unset($result['pubs']); + } } if($result && !$lock) { |