]> git.mxchange.org Git - friendica.git/commitdiff
Ensure that the public contact exixts before adding a user contact
authorMichael <heluecht@pirati.ca>
Wed, 25 May 2022 11:43:29 +0000 (11:43 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 25 May 2022 11:43:29 +0000 (11:43 +0000)
src/Model/Contact.php

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