]> git.mxchange.org Git - friendica.git/commitdiff
Don't select deleted contact when in Contact::createFromProbeForUser
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 21 Jan 2023 03:12:24 +0000 (22:12 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 21 Jan 2023 14:18:17 +0000 (09:18 -0500)
src/Model/Contact.php

index cfd25a1333a8267246c85d13c7e180c3bb205177..7b5a1e428a54d49ca2b0e845df6905d39cbc4191 100644 (file)
@@ -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']);