mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:50:11 +00:00
Fix performance issues due to relay contact requests
This commit is contained in:
parent
db16f1a106
commit
046b5a1eac
2 changed files with 5 additions and 3 deletions
|
@ -62,7 +62,8 @@ class Diaspora
|
|||
$relay_contact = $contact;
|
||||
} elseif (empty($contact['baseurl'])) {
|
||||
if (!empty($contact['batch'])) {
|
||||
$relay_contact = DBA::selectFirst('contact', [], ['batch' => $contact['batch'], 'contact-type' => Contact::TYPE_RELAY, 'uid' => 0]);
|
||||
$condition = ['uid' => 0, 'network' => Protocol::FEDERATED, 'batch' => $contact['batch'], 'contact-type' => Contact::TYPE_RELAY];
|
||||
$relay_contact = DBA::selectFirst('contact', [], $condition);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue