From d3ef2b23cc8e97af004d3af09a1920d6f33f4893 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 20 Jan 2023 22:12:24 -0500 Subject: [PATCH] Don't select deleted contact when in Contact::createFromProbeForUser --- src/Model/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index cfd25a1333..7b5a1e428a 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2968,7 +2968,7 @@ class Contact } // check if we already have a contact - $condition = ['uid' => $uid, 'nurl' => Strings::normaliseLink($ret['url'])]; + $condition = ['uid' => $uid, 'nurl' => Strings::normaliseLink($ret['url']), 'deleted' => false]; $contact = DBA::selectFirst('contact', ['id', 'rel', 'url', 'pending', 'hub-verify'], $condition); $protocol = self::getProtocol($ret['url'], $ret['network']); -- 2.39.5