Ensure that the public contact exixts before adding a user contact

This commit is contained in:
Michael 2022-05-25 11:43:29 +00:00
parent 9804c71b53
commit f5d69b3b6a

View File

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