Merge pull request #5703 from annando/fix-missing-server

Fix: Missing gserver entries - show correct server platform
This commit is contained in:
Hypolite Petovan 2018-08-30 08:09:18 -04:00 committed by GitHub
commit b028de3aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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