From: Michael Date: Tue, 4 Dec 2018 14:17:55 +0000 (+0000) Subject: Improved fallback when the probing fails X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5c20f21dd8ebcb2be843eac6b6a28773038d679a;p=friendica.git Improved fallback when the probing fails --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 5507ba3d1d..b5cecd732e 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -112,10 +112,8 @@ class Contact extends BaseObject return $data['baseurl']; } - $urlarr = explode('/profile/', $url); - $basepath = $urlarr[0]; - - return $basepath; + // When we can't probe the server, we use some ugly function that does some pattern matching + return PortableContact::detectServer($url); } /**