aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-08 16:51:11 -0700
committerzotlabs <mike@macgirvin.com>2018-04-08 16:51:29 -0700
commitf2078b25adc71e8c9b1b197864bbb3f4aab6fb8b (patch)
tree1d9df6eb1bc7660a8630d4d3224e95c975280e19
parent73248fd227cf2673663be8e1be0fdc4e9154e5e6 (diff)
downloadvolse-hubzilla-f2078b25adc71e8c9b1b197864bbb3f4aab6fb8b.tar.gz
volse-hubzilla-f2078b25adc71e8c9b1b197864bbb3f4aab6fb8b.tar.bz2
volse-hubzilla-f2078b25adc71e8c9b1b197864bbb3f4aab6fb8b.zip
hubzilla issue #1050 pubstream notifications visible when pubstream is not
-rw-r--r--Zotlabs/Module/Ping.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Ping.php b/Zotlabs/Module/Ping.php
index eab49d69e..55ce40929 100644
--- a/Zotlabs/Module/Ping.php
+++ b/Zotlabs/Module/Ping.php
@@ -140,7 +140,8 @@ class Ping extends \Zotlabs\Web\Controller {
db_utcnow(), db_quoteinterval('3 MINUTE')
);
- $discover_tab_on = ((get_config('system','disable_discover_tab') || get_config('system','disable_discover_tab') === false) ? false : true);
+ $discover_tab_on = can_view_public_stream();
+
$notify_pubs = ((local_channel()) ? ($vnotify & VNOTIFY_PUBS) && $discover_tab_on : $discover_tab_on);
if($notify_pubs) {