Issue 12266: APISuggestions should now work

pull/12271/head
Michael 2022-11-26 02:08:34 +00:00
rodzic 29ee2473d7
commit 8879d93aad
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -48,7 +48,10 @@ class Suggestions extends BaseApi
$accounts = [];
foreach ($suggestions as $suggestion) {
$accounts[] = DI::mstdnAccount()->createFromContactId($suggestion['id'], $uid);
$accounts[] = [
'source' => 'past_interactions',
'account' => DI::mstdnAccount()->createFromContactId($suggestion['id'], $uid)
];
}
System::jsonExit($accounts);