Only fetch, not probe

This commit is contained in:
Michael 2021-09-11 13:00:12 +00:00
parent 10cb52bc00
commit 1e123ace12

View file

@ -62,7 +62,7 @@ class User
$pcontact = Contact::selectFirst(['id'], ['uri-id' => $contact['uri-id'], 'uid' => 0]); $pcontact = Contact::selectFirst(['id'], ['uri-id' => $contact['uri-id'], 'uid' => 0]);
if (!empty($contact['uri-id']) && DBA::isResult($pcontact)) { if (!empty($contact['uri-id']) && DBA::isResult($pcontact)) {
$pcid = $pcontact['id']; $pcid = $pcontact['id'];
} elseif (empty($contact['url']) || !($pcid = Contact::getIdForURL($contact['url']))) { } elseif (empty($contact['url']) || !($pcid = Contact::getIdForURL($contact['url'], 0, false))) {
Logger::info('Public contact for user not found', ['uri-id' => $contact['uri-id'], 'uid' => $contact['uid']]); Logger::info('Public contact for user not found', ['uri-id' => $contact['uri-id'], 'uid' => $contact['uid']]);
return false; return false;
} }