]> git.mxchange.org Git - friendica.git/commitdiff
tags-cloud: respect remote perms
authorrabuzarus <>
Thu, 23 Nov 2017 02:43:39 +0000 (03:43 +0100)
committerrabuzarus <>
Thu, 23 Nov 2017 02:43:39 +0000 (03:43 +0100)
include/tags.php

index 8a6b3ba7468a8ef5efc908f81e71c79477cd2337..01c39d925ab2971d849f72e88a482af6917c7872 100644 (file)
@@ -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`
                LEFT JOIN `item` ON `term`.`oid` = `item`.`id`
                WHERE `term`.`uid` = %d AND `term`.`type` = %d
-               AND `term`.`otype` = %d AND `item`.`private` = 0
-               $sql_options AND $item_condition
+               AND `term`.`otype` = %d
+               AND $item_condition $sql_options
                GROUP BY `term` ORDER BY `total` DESC %s",
                intval($uid),
                intval($type),