]> git.mxchange.org Git - friendica.git/commitdiff
speed up friend requests and avoid parse errors by using hcard address instead of...
authorFriendika <info@friendika.com>
Thu, 8 Sep 2011 05:49:58 +0000 (22:49 -0700)
committerFriendika <info@friendika.com>
Thu, 8 Sep 2011 05:49:58 +0000 (22:49 -0700)
include/Scrape.php

index bf64c2243fedac734009bb6faa3aa561bb0c2f42..b80f24c22ec57a941d55e4d03c30b25abb791fb9 100644 (file)
@@ -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'];