Revert "Remove visible channels list from pubstream tags cloud creation procedure"

This reverts commit 5c4c6e68f6
This commit is contained in:
Max Kostikov 2019-10-06 19:24:28 +02:00
parent 5c4c6e68f6
commit aa44da35ba

View File

@ -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 ') . "' ";