From 0ccb171449b8f045f073bca29b2fa4e701a45016 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 8 Jul 2016 21:15:20 +0200 Subject: [PATCH] Probing now has a Twitter detection. --- include/Probe.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/Probe.php b/include/Probe.php index 9dc2a370b9..0ce388dd7b 100644 --- a/include/Probe.php +++ b/include/Probe.php @@ -197,6 +197,9 @@ class Probe { $host = substr($uri,strpos($uri, '@') + 1); $nick = substr($uri,0, strpos($uri, '@')); + if (strpos($uri, '@twitter.com')) + return array("network" => NETWORK_TWITTER); + $lrdd = self::xrd($host); if (!$lrdd) return self::mail($uri, $uid); @@ -211,6 +214,10 @@ class Probe { // todo: Ports? $host = $parts["host"]; + + if ($host == 'twitter.com') + return array("network" => NETWORK_TWITTER); + $lrdd = self::xrd($host); $path_parts = explode("/", trim($parts["path"], "/")); -- 2.39.5