ignore suggestions

This commit is contained in:
Friendika 2011-11-03 16:00:52 -07:00
parent 4f4b03367a
commit 014c91431e
6 changed files with 59 additions and 5 deletions

View file

@ -171,9 +171,11 @@ function suggestion_query($uid, $start = 0, $limit = 40) {
$r = q("SELECT count(glink.gcid) as `total`, gcontact.* from gcontact
left join glink on glink.gcid = gcontact.id
where uid = %d and not gcontact.nurl in ( select nurl from contact where uid = %d)
and not gcontact.id in ( select gcid from gcign where uid = %d )
group by glink.gcid order by total desc limit %d, %d ",
intval($uid),
intval($uid),
intval($uid),
intval($start),
intval($limit)
);