aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-17 23:01:44 -0700
committerFriendika <info@friendika.com>2011-08-17 23:01:44 -0700
commit96342878398e394173ba1a2dd825afbcb19e7199 (patch)
tree80a515ef2aee6e47a30e32d028d7e275ce2b464c /include/diaspora.php
parent37fc7324b702faa1fe74808b7d3e73389d136f09 (diff)
downloadvolse-hubzilla-96342878398e394173ba1a2dd825afbcb19e7199.tar.gz
volse-hubzilla-96342878398e394173ba1a2dd825afbcb19e7199.tar.bz2
volse-hubzilla-96342878398e394173ba1a2dd825afbcb19e7199.zip
fix several probe related issues
Diffstat (limited to 'include/diaspora.php')
-rw-r--r--include/diaspora.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index e089e3f04..9987c2139 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -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),