diff options
author | Friendika <info@friendika.com> | 2011-09-06 18:06:19 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-06 18:06:19 -0700 |
commit | a5125359d85afa056aee18a73692b6d1a587be47 (patch) | |
tree | 55b3715df1499528d4cfb2d7a488ccd0f61ab906 /mod/dfrn_request.php | |
parent | 18315a1377f212d56df61c5a5095892e8fcaf77f (diff) | |
download | volse-hubzilla-a5125359d85afa056aee18a73692b6d1a587be47.tar.gz volse-hubzilla-a5125359d85afa056aee18a73692b6d1a587be47.tar.bz2 volse-hubzilla-a5125359d85afa056aee18a73692b6d1a587be47.zip |
faster friend requests (DFRN)
Diffstat (limited to 'mod/dfrn_request.php')
-rw-r--r-- | mod/dfrn_request.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index ce83001b4..5d789f480 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -277,14 +277,15 @@ function dfrn_request_post(&$a) { // Canonicalise email-style profile locator - $url = webfinger_dfrn($url); + $hcard = ''; + $url = webfinger_dfrn($url,$hcard); if(substr($url,0,5) === 'stat:') { - $network = 'stat'; + $network = NETWORK_OSTATUS; $url = substr($url,5); } else { - $network = 'dfrn'; + $network = NETWORK_DFRN; } logger('dfrn_request: url: ' . $url); @@ -342,7 +343,7 @@ function dfrn_request_post(&$a) { require_once('Scrape.php'); - $parms = scrape_dfrn($url); + $parms = scrape_dfrn(($hcard) ? $hcard : $url); if(! count($parms)) { notice( t('Profile location is not valid or does not contain profile information.') . EOL ); |