'about' => $contact_details['about'],
'sparkle' => $sparkle,
'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
- 'url' => $url,
+ 'url' => $rr['url'],
'network' => network_to_name($rr['network'], $url),
);
}
"SELECT COUNT(*) AS `total`
FROM `contact`
WHERE `uid` = %d
- AND `self` = 0
+ AND NOT `self`
+ AND NOT `blocked`
+ AND NOT `pending`
AND `id` NOT IN (
SELECT DISTINCT(`contact-id`)
FROM `group_member`
WHERE `uid` = %d
- ) ", intval($uid), intval($uid)
+ )", intval($uid), intval($uid)
);
return $r;
"SELECT *
FROM `contact`
WHERE `uid` = %d
- AND `self` = 0
+ AND NOT `self`
+ AND NOT `blocked`
+ AND NOT `pending`
AND `id` NOT IN (
SELECT DISTINCT(`contact-id`)
FROM `group_member` WHERE `uid` = %d
)
- AND `blocked` = 0
- AND `pending` = 0
LIMIT %d, %d", intval($uid), intval($uid), intval($start), intval($count)
);
return $r;