]> git.mxchange.org Git - friendica.git/blobdiff - include/Probe.php
Fix Issue #2816 - MySQL version typo
[friendica.git] / include / Probe.php
index 8d4103aff1d3154b99fc83437b3e0829935db7a1..44824103b452042dfd93c1bdc7fc414a4d39ec44 100644 (file)
@@ -408,7 +408,9 @@ class Probe {
        }
 
        /**
-        * @brief Do a webfinger request. For details see RFC 7033: <https://tools.ietf.org/html/rfc7033>
+        * @brief Perform a webfinger request.
+        *
+        * For details see RFC 7033: <https://tools.ietf.org/html/rfc7033>
         *
         * @param string $url Address that should be probed
         *
@@ -460,9 +462,10 @@ class Probe {
        }
 
        /**
-        * @brief Poll the noscrape page (Friendica specific)
+        * @brief Poll the Friendica specific noscrape page.
         *
-        * "noscrape" is a faster alternative to fetching the data from the hcard.
+        * "noscrape" is a faster alternative to fetch the data from the hcard.
+        * This functionality was originally created for the directory.
         *
         * @param string $noscrape Link to the noscrape page
         * @param array $data The already fetched data
@@ -785,6 +788,9 @@ class Probe {
                        isset($data["pubkey"]) AND ($hcard != "")) {
                        $data["network"] = NETWORK_DIASPORA;
 
+                       // The Diaspora handle must always be lowercase
+                       $data["addr"] = strtolower($data["addr"]);
+
                        // We have to overwrite the detected value for "notify" since Hubzilla doesn't send it
                        $data["notify"] = $data["baseurl"]."/receive/users/".$data["guid"];
                        $data["batch"] = $data["baseurl"]."/receive/public";