aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ') . "' ";