mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-12 07:14:27 +02:00
Fix code style
This commit is contained in:
parent
d4697a17a3
commit
0e59dba914
102 changed files with 3038 additions and 2764 deletions
|
@ -35,15 +35,15 @@ class Directory extends BaseApi
|
|||
$this->logger->info('directory', ['offset' => $request['offset'], 'limit' => $request['limit'], 'order' => $request['order'], 'local' => $request['local']]);
|
||||
|
||||
if ($request['local']) {
|
||||
$table = 'owner-view';
|
||||
$table = 'owner-view';
|
||||
$condition = ['net-publish' => true];
|
||||
} else {
|
||||
$table = 'contact';
|
||||
$table = 'contact';
|
||||
$condition = ['uid' => 0, 'hidden' => false, 'network' => Protocol::FEDERATED];
|
||||
}
|
||||
|
||||
$params = ['limit' => [$request['offset'], $request['limit']],
|
||||
'order' => [($request['order'] == 'active') ? 'last-item' : 'created' => true]];
|
||||
'order' => [($request['order'] == 'active') ? 'last-item' : 'created' => true]];
|
||||
|
||||
$accounts = [];
|
||||
$contacts = DBA::select($table, ['id', 'uid'], $condition, $params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue