Only fetch, not probe
This commit is contained in:
parent
10cb52bc00
commit
1e123ace12
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user