1
1
Fork 0

fix several probe related issues

This commit is contained in:
Friendika 2011-08-17 23:01:44 -07:00
commit 9634287839
6 changed files with 102 additions and 59 deletions

View file

@ -279,6 +279,13 @@ function diaspora_get_contact_by_handle($uid,$handle) {
}
function find_person_by_handle($handle) {
$r = q("select * from fcontact where network = '%s' and addr = '%s' limit 1",
dbesc(NETWORK_DIASPORA),
dbesc($handle)
);
if(count($r))
return $r[0];
// we don't care about the uid, we just want to save an expensive webfinger probe
$r = q("select * from contact where network = '%s' and addr = '%s' LIMIT 1",
dbesc(NETWORK_DIASPORA),