Probing now has a Twitter detection.

This commit is contained in:
Michael Vogel 2016-07-08 21:15:20 +02:00
parent b954714464
commit 0ccb171449

View file

@ -197,6 +197,9 @@ class Probe {
$host = substr($uri,strpos($uri, '@') + 1); $host = substr($uri,strpos($uri, '@') + 1);
$nick = substr($uri,0, strpos($uri, '@')); $nick = substr($uri,0, strpos($uri, '@'));
if (strpos($uri, '@twitter.com'))
return array("network" => NETWORK_TWITTER);
$lrdd = self::xrd($host); $lrdd = self::xrd($host);
if (!$lrdd) if (!$lrdd)
return self::mail($uri, $uid); return self::mail($uri, $uid);
@ -211,6 +214,10 @@ class Probe {
// todo: Ports? // todo: Ports?
$host = $parts["host"]; $host = $parts["host"];
if ($host == 'twitter.com')
return array("network" => NETWORK_TWITTER);
$lrdd = self::xrd($host); $lrdd = self::xrd($host);
$path_parts = explode("/", trim($parts["path"], "/")); $path_parts = explode("/", trim($parts["path"], "/"));