aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-02 21:30:27 -0700
committerfriendica <info@friendica.com>2013-07-02 21:30:27 -0700
commit50c70a3ef2bc56aa039f42f4d01f636bda5cebb0 (patch)
tree6b589dcc80f713e30c07c33ce24e15097e824c4b
parentb021c8e31ea3cfffcbb2c66cd3dfa0b37f747b26 (diff)
downloadvolse-hubzilla-50c70a3ef2bc56aa039f42f4d01f636bda5cebb0.tar.gz
volse-hubzilla-50c70a3ef2bc56aa039f42f4d01f636bda5cebb0.tar.bz2
volse-hubzilla-50c70a3ef2bc56aa039f42f4d01f636bda5cebb0.zip
only show tag cloud for visible items
-rw-r--r--include/taxonomy.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index d4bb97b3e..1f2b30731 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -97,13 +97,13 @@ function format_term_for_display($term) {
function tagadelic($uid, $count = 0, $flags = 0, $type = TERM_HASHTAG) {
-dbg(1);
+
if($flags)
$sql_options = " and (item_flags & " . intval($flags) . ") ";
// Fetch tags
$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 otype = %d
+ and otype = %d and item_restrict = 0
$sql_options
group by term order by total desc %s",
intval($uid),
@@ -111,7 +111,7 @@ dbg(1);
intval(TERM_OBJ_POST),
((intval($count)) ? "limit $count" : '')
);
-dbg(0);
+
if(! $r)
return array();