mirror of
https://github.com/friendica/friendica
synced 2024-11-19 04:23:41 +00:00
Merge pull request #9119 from annando/directory-public
Fix: Transmit the public contact id
This commit is contained in:
commit
9da2a444b6
1 changed files with 2 additions and 2 deletions
|
@ -61,9 +61,9 @@ class Directory extends BaseApi
|
||||||
'order' => [($order == 'active') ? 'last-item' : 'created' => true]];
|
'order' => [($order == 'active') ? 'last-item' : 'created' => true]];
|
||||||
|
|
||||||
$accounts = [];
|
$accounts = [];
|
||||||
$contacts = DBA::select($table, ['id'], $condition, $params);
|
$contacts = DBA::select($table, ['id', 'uid'], $condition, $params);
|
||||||
while ($contact = DBA::fetch($contacts)) {
|
while ($contact = DBA::fetch($contacts)) {
|
||||||
$accounts[] = DI::mstdnAccount()->createFromContactId($contact['id']);
|
$accounts[] = DI::mstdnAccount()->createFromContactId($contact['id'], $contact['uid']);
|
||||||
}
|
}
|
||||||
DBA::close($contacts);
|
DBA::close($contacts);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue