Merge pull request #11558 from annando/public-contact
Ensure that the public contact exists before adding a user contact
This commit is contained in:
commit
488fdd9791
|
@ -2542,6 +2542,11 @@ 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
|
||||||
|
if ($ret['network'] != Protocol::PHANTOM) {
|
||||||
|
self::getIdForURL($url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($network != '') && ($ret['network'] != $network)) {
|
if (($network != '') && ($ret['network'] != $network)) {
|
||||||
|
|
Loading…
Reference in a new issue