mirror of
https://github.com/friendica/friendica
synced 2025-04-21 22:30:11 +00:00
Allow the search for contacts on blocked servers via web
This commit is contained in:
parent
e6ce165bb5
commit
f0743e4e12
4 changed files with 15 additions and 11 deletions
|
@ -60,7 +60,7 @@ class Search extends BaseApi
|
|||
}
|
||||
|
||||
if (empty($accounts)) {
|
||||
$contacts = Contact::searchByName($request['q'], '', $request['following'] ? $uid : 0, $request['limit'], $request['offset']);
|
||||
$contacts = Contact::searchByName($request['q'], '', false, $request['following'] ? $uid : 0, $request['limit'], $request['offset']);
|
||||
foreach ($contacts as $contact) {
|
||||
$accounts[] = DI::mstdnAccount()->createFromContactId($contact['id'], $uid);
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ class Search extends BaseApi
|
|||
}
|
||||
|
||||
$accounts = [];
|
||||
foreach (Contact::searchByName($q, '', $following ? $uid : 0, $limit, $offset) as $contact) {
|
||||
foreach (Contact::searchByName($q, '', $following ? $uid : 0, false, $limit, $offset) as $contact) {
|
||||
$accounts[] = DI::mstdnAccount()->createFromContactId($contact['id'], $uid);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue