mirror of
https://github.com/friendica/friendica
synced 2025-05-08 14:24:13 +02:00
Use central function to fetch the global directory
This commit is contained in:
parent
478ee7b6fc
commit
171354181d
13 changed files with 24 additions and 14 deletions
|
@ -59,7 +59,7 @@ class Search extends BaseApi
|
|||
if (empty($results)) {
|
||||
if (DI::config()->get('system', 'poco_local_search')) {
|
||||
$results = CoreSearch::getContactsFromLocalDirectory($request['q'], CoreSearch::TYPE_ALL, 0, $request['limit']);
|
||||
} elseif (!empty(DI::config()->get('system', 'directory'))) {
|
||||
} elseif (CoreSearch::getGlobalDirectory()) {
|
||||
$results = CoreSearch::getContactsFromGlobalDirectory($request['q'], CoreSearch::TYPE_ALL, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue