Commit 5c4c6e68 authored by Max Kostikov's avatar Max Kostikov

Remove visible channels list from pubstream tags cloud creation procedure

parent 6feb864c
Pipeline #172811 passed with stage
in 3 minutes and 8 seconds
......@@ -334,13 +334,14 @@ 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 ') . "' ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment