X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FProbe.php;h=a6987d0a64c4a2e4b3ef5f8ede319dcbb57acaa9;hb=f36d4891bcf0a0eb4f0243851375966d6e99d201;hp=baae0d3d310d989bd2faa99e9772ab49a2e3fcb7;hpb=d05d2a348b407d4630708056d6ef1b7042f7f41a;p=friendica.git diff --git a/src/Network/Probe.php b/src/Network/Probe.php index baae0d3d31..a6987d0a64 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -1,6 +1,6 @@ $uri]); return []; } + // If the URI starts with "mailto:" then jump directly to the mail detection + if (strpos($uri, 'mailto:') !== false) { + $uri = str_replace('mailto:', '', $uri); + return self::mail($uri, $uid); + } + + if ($network == Protocol::MAIL) { + return self::mail($uri, $uid); + } + Logger::info('Probing start', ['uri' => $uri]); if (!empty($ap_profile['addr']) && ($ap_profile['addr'] != $uri)) { @@ -1999,7 +1998,7 @@ class Probe /** * Fetch the last date that the contact had posted something (publically) * - * @param string $data probing result + * @param array $data probing result * @return string last activity */ public static function getLastUpdate(array $data)