mirror of
https://github.com/friendica/friendica
synced 2024-12-25 04:40:17 +00:00
tags-cloud: respect remote perms
This commit is contained in:
parent
19afabd268
commit
f1b86d31ca
1 changed files with 2 additions and 2 deletions
|
@ -171,8 +171,8 @@ function tagadelic($uid, $count = 0, $owner_id = 0, $flags = 0, $type = TERM_HAS
|
||||||
$r = q("SELECT `term`, COUNT(`term`) AS `total` FROM `term`
|
$r = q("SELECT `term`, COUNT(`term`) AS `total` FROM `term`
|
||||||
LEFT JOIN `item` ON `term`.`oid` = `item`.`id`
|
LEFT JOIN `item` ON `term`.`oid` = `item`.`id`
|
||||||
WHERE `term`.`uid` = %d AND `term`.`type` = %d
|
WHERE `term`.`uid` = %d AND `term`.`type` = %d
|
||||||
AND `term`.`otype` = %d AND `item`.`private` = 0
|
AND `term`.`otype` = %d
|
||||||
$sql_options AND $item_condition
|
AND $item_condition $sql_options
|
||||||
GROUP BY `term` ORDER BY `total` DESC %s",
|
GROUP BY `term` ORDER BY `total` DESC %s",
|
||||||
intval($uid),
|
intval($uid),
|
||||||
intval($type),
|
intval($type),
|
||||||
|
|
Loading…
Reference in a new issue