Merge pull request #11558 from annando/public-contact

Ensure that the public contact exists before adding a user contact
This commit is contained in:
Hypolite Petovan 2022-05-25 09:06:13 -04:00 committed by GitHub
commit 488fdd9791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2542,6 +2542,11 @@ class Contact
} else {
$probed = true;
$ret = Probe::uri($url, $network, $uid);
// Ensure that the public contact exists
if ($ret['network'] != Protocol::PHANTOM) {
self::getIdForURL($url);
}
}
if (($network != '') && ($ret['network'] != $network)) {