aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-07 22:49:58 -0700
committerFriendika <info@friendika.com>2011-09-07 22:49:58 -0700
commitfdd372a7988733586b86cac25ba5a521a9f3055e (patch)
treed171f692038464342fd5db81ece65d150685f18e
parentc8f64930084a6490cd31ea386cea51cefef7e7dc (diff)
downloadvolse-hubzilla-fdd372a7988733586b86cac25ba5a521a9f3055e.tar.gz
volse-hubzilla-fdd372a7988733586b86cac25ba5a521a9f3055e.tar.bz2
volse-hubzilla-fdd372a7988733586b86cac25ba5a521a9f3055e.zip
speed up friend requests and avoid parse errors by using hcard address instead of profile url
-rw-r--r--include/Scrape.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Scrape.php b/include/Scrape.php
index bf64c2243..b80f24c22 100644
--- a/include/Scrape.php
+++ b/include/Scrape.php
@@ -471,7 +471,7 @@ function probe_url($url, $mode = PROBE_NORMAL) {
}
if(strlen($dfrn)) {
- $ret = scrape_dfrn($dfrn);
+ $ret = scrape_dfrn(($hcard) ? $hcard : $dfrn);
if(is_array($ret) && x($ret,'dfrn-request')) {
$network = NETWORK_DFRN;
$request = $ret['dfrn-request'];