aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-17 21:48:43 -0700
committerzotlabs <mike@macgirvin.com>2018-04-17 21:48:43 -0700
commit6903dbcc0dd01e86f853fdd0cba680ece05aa937 (patch)
tree211caad45fe5b231a090c661ae620d631477d83b /Zotlabs
parenta806c68713baebcc8ca3353e01031593b2f571a4 (diff)
downloadvolse-hubzilla-6903dbcc0dd01e86f853fdd0cba680ece05aa937.tar.gz
volse-hubzilla-6903dbcc0dd01e86f853fdd0cba680ece05aa937.tar.bz2
volse-hubzilla-6903dbcc0dd01e86f853fdd0cba680ece05aa937.zip
re-use directory safemode setting for public stream tag filtering since a handful of well-known tags skews the results wildly. Added 'bot' to the list just because it's noisy. A site can customise or nullify this feature if they desire.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Widget/Pubtagcloud.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Pubtagcloud.php b/Zotlabs/Widget/Pubtagcloud.php
index b21586db0..826e3e6ae 100644
--- a/Zotlabs/Widget/Pubtagcloud.php
+++ b/Zotlabs/Widget/Pubtagcloud.php
@@ -28,12 +28,13 @@ class Pubtagcloud {
$site_firehose = false;
}
+ $safemode = get_xconfig(get_observer_hash(),'directory','safemode',1);
$limit = ((array_key_exists('limit', $arr)) ? intval($arr['limit']) : 75);
- return pubtagblock($net_firehose,$site_firehose, $limit, $trending);
+ return pubtagblock($net_firehose,$site_firehose, $limit, $trending, $safemode);
return '';
}