From f5d69b3b6a9fca1c208d8cc6610508b4a9eb464b Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 25 May 2022 11:43:29 +0000 Subject: [PATCH] Ensure that the public contact exixts before adding a user contact --- src/Model/Contact.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index bf1a50cbc4..7cb63d490a 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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)) {