hubzilla issue #1050 pubstream notifications visible when pubstream is not

This commit is contained in:
zotlabs 2018-04-08 16:51:11 -07:00
parent 73248fd227
commit f2078b25ad

View file

@ -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) {