Ensure that the public contact exixts before adding a user contact
This commit is contained in:
parent
9804c71b53
commit
f5d69b3b6a
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue