aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-10-06 19:24:28 +0200
committerMax Kostikov <max@kostikov.co>2019-10-06 19:24:28 +0200
commitaa44da35bad02fda6c123a7961993ad687353031 (patch)
tree3e83ceb0cb7ac27de0e6a499b9bdd4324241c4a3
parent5c4c6e68f600d50deed8ddb32dd6702af9b52853 (diff)
downloadvolse-hubzilla-aa44da35bad02fda6c123a7961993ad687353031.tar.gz
volse-hubzilla-aa44da35bad02fda6c123a7961993ad687353031.tar.bz2
volse-hubzilla-aa44da35bad02fda6c123a7961993ad687353031.zip
Revert "Remove visible channels list from pubstream tags cloud creation procedure"
This reverts commit 5c4c6e68f600d50deed8ddb32dd6702af9b52853
-rw-r--r--include/taxonomy.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index a9991b617..b0304de5b 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -334,14 +334,13 @@ function pub_tagadelic($net,$site,$limit,$recent,$safemode,$type) {
$count = intval($limit);
if($site) {
- //$uids = " and item.uid in ( " . stream_perms_api_uids(PERMS_PUBLIC) . " ) and item_private = 0 and item_wall = 1 ";
+ $uids = " and item.uid in ( " . stream_perms_api_uids(PERMS_PUBLIC) . " ) and item_private = 0 and item_wall = 1 ";
}
else {
$sys = get_sys_channel();
$uids = " and item.uid = " . intval($sys['channel_id']) . " ";
+ $sql_extra = " and item_private = 0 ";
}
-
- $sql_extra = " and item_private = 0 ";
if($recent)
$sql_extra .= " and item.created > '" . datetime_convert('UTC','UTC', 'now - ' . intval($recent) . ' days ') . "' ";