data structures to support hidden friends

This commit is contained in:
friendica
2011-12-05 02:16:59 -08:00
parent 116e20c89d
commit c8d5274cee
7 changed files with 16 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ function poco_init(&$a) {
and uid in (select uid from pconfig where cat = 'system' and k = 'suggestme' and v = 1) ");
}
else {
$r = q("SELECT count(*) as `total` from `contact` where `uid` = %d and blocked = 0 and pending = 0
$r = q("SELECT count(*) as `total` from `contact` where `uid` = %d and blocked = 0 and pending = 0 and hidden = 0
$sql_extra ",
intval($user['uid'])
);
@@ -79,7 +79,7 @@ function poco_init(&$a) {
}
else {
$r = q("SELECT * from `contact` where `uid` = %d and blocked = 0 and pending = 0
$r = q("SELECT * from `contact` where `uid` = %d and blocked = 0 and pending = 0 and hidden = 0
$sql_extra LIMIT %d, %d",
intval($user['uid']),
intval($startIndex),