aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-08-06 21:40:39 +0200
committergit-marijus <mario@mariovavti.com>2017-08-06 23:34:05 +0200
commit0085b64b2bb22cf463ec66376d06d64d5b5b5730 (patch)
tree0f99658f095296826b21c7545a6657bd77e1de19 /include/zot.php
parent913046aa28740f91d5aa16f0bfa8c764a7a24c03 (diff)
downloadvolse-hubzilla-0085b64b2bb22cf463ec66376d06d64d5b5b5730.tar.gz
volse-hubzilla-0085b64b2bb22cf463ec66376d06d64d5b5b5730.tar.bz2
volse-hubzilla-0085b64b2bb22cf463ec66376d06d64d5b5b5730.zip
consolidate disable_discover_tab config if it was not yet set to either 1 or 0 in DB
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index 8bbc4a969..4d056ffeb 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1326,8 +1326,10 @@ function public_recips($msg) {
$include_sys = false;
if($msg['message']['type'] === 'activity') {
- if(! get_config('system','disable_discover_tab'))
+ $disable_discover_tab = get_config('system','disable_discover_tab') || get_config('system','disable_discover_tab') === false;
+ if(! $disable_discover_tab)
$include_sys = true;
+
$perm = 'send_stream';
if(array_key_exists('flags',$msg['message']) && in_array('thread_parent', $msg['message']['flags'])) {