Merge pull request #9119 from annando/directory-public

Fix: Transmit the public contact id
This commit is contained in:
Hypolite Petovan 2020-09-02 02:48:31 -04:00 committed by GitHub
commit 9da2a444b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,9 +61,9 @@ class Directory extends BaseApi
'order' => [($order == 'active') ? 'last-item' : 'created' => true]];
$accounts = [];
$contacts = DBA::select($table, ['id'], $condition, $params);
$contacts = DBA::select($table, ['id', 'uid'], $condition, $params);
while ($contact = DBA::fetch($contacts)) {
$accounts[] = DI::mstdnAccount()->createFromContactId($contact['id']);
$accounts[] = DI::mstdnAccount()->createFromContactId($contact['id'], $contact['uid']);
}
DBA::close($contacts);