Don't select deleted contact when in Contact::createFromProbeForUser

This commit is contained in:
Hypolite Petovan 2023-01-20 22:12:24 -05:00
parent 6749ace4b7
commit d3ef2b23cc

View 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']);