]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Missing gserver entries - show correct server platform
authorMichael <heluecht@pirati.ca>
Thu, 30 Aug 2018 09:52:38 +0000 (09:52 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 30 Aug 2018 09:52:38 +0000 (09:52 +0000)
src/Model/Contact.php

index 3e70a5cbdea35bc969d7d20e5cb866864326dbc3..d53126f6ff2aed90db3f1eda8c393f79f205a79b 100644 (file)
@@ -1076,6 +1076,11 @@ class Contact extends BaseObject
 
                if (empty($data)) {
                        $data = Probe::uri($url, "", $uid);
+
+                       // Ensure that there is a gserver entry
+                       if (!empty($data['baseurl']) && ($data['network'] != Protocol::PHANTOM)) {
+                               PortableContact::checkServer($data['baseurl']);
+                       }
                }
 
                // Last try in gcontact for unsupported networks