mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue