don't include invisible "update activities" in category widget
This commit is contained in:
@@ -55,18 +55,20 @@ function term_item_parent_query($uid,$table,$s,$type = TERM_UNKNOWN, $type2 = ''
|
||||
$s = str_replace('*','%',$s);
|
||||
|
||||
if($type2) {
|
||||
$r = q("select parent from item left join term on term.oid = item.id where term.ttype in (%d, %d) and term.term like '%s' and term.uid = %d and term.otype = 1",
|
||||
$r = q("select parent from item left join term on term.oid = item.id where term.ttype in (%d, %d) and term.term like '%s' and term.uid = %d and term.otype = 1 and item.verb != '%s'",
|
||||
intval($type),
|
||||
intval($type2),
|
||||
dbesc($s),
|
||||
intval($uid)
|
||||
intval($uid),
|
||||
dbesc(ACTIVITY_UPDATE)
|
||||
);
|
||||
}
|
||||
else {
|
||||
$r = q("select parent from item left join term on term.oid = item.id where term.ttype = %d and term.term like '%s' and term.uid = %d and term.otype = 1",
|
||||
$r = q("select parent from item left join term on term.oid = item.id where term.ttype = %d and term.term like '%s' and term.uid = %d and term.otype = 1 and item.verb != '%s'",
|
||||
intval($type),
|
||||
dbesc($s),
|
||||
intval($uid)
|
||||
intval($uid),
|
||||
dbesc(ACTIVITY_UPDATE)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user