]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_request.php
Replace "Probe::uri" with "Contact::getByURL"
[friendica.git] / mod / dfrn_request.php
index 0be8403c2bfbec4031a5ae57adde17be2b5c49e9..f8e4c90236a8f2332068c55688af2bfaa26cea21 100644 (file)
@@ -19,9 +19,9 @@
  *
  *Handles communication associated with the issuance of friend requests.
  *
- * @see PDF with dfrn specs: https://github.com/friendica/friendica/blob/master/spec/dfrn2.pdf
+ * @see PDF with dfrn specs: https://github.com/friendica/friendica/blob/stable/spec/dfrn2.pdf
  *    You also find a graphic which describes the confirmation process at
- *    https://github.com/friendica/friendica/blob/master/spec/dfrn2_contact_request.png
+ *    https://github.com/friendica/friendica/blob/stable/spec/dfrn2_contact_request.png
  */
 
 use Friendica\App;
@@ -294,11 +294,11 @@ function dfrn_request_post(App $a)
                $hcard = '';
 
                // Detect the network
-               $data = Probe::uri($url);
+               $data = Contact::getByURL($url);
                $network = $data["network"];
 
-               // Canonicalise email-style profile locator
-               $url = Probe::webfingerDfrn($url, $hcard);
+               // Canonicalize email-style profile locator
+               $url = Probe::webfingerDfrn($data['url'], $hcard);
 
                if (substr($url, 0, 5) === 'stat:') {
                        // Every time we detect the remote subscription we define this as OStatus.