mirror of
https://github.com/friendica/friendica
synced 2024-11-18 11:43:41 +00:00
Issue 12266: APISuggestions should now work
This commit is contained in:
parent
29ee2473d7
commit
8879d93aad
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue