X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FApi%2FMastodon%2FSuggestions.php;h=6eb2509269cd33c625a9114a592fbec7d1ff90c9;hb=8879d93aad0313c2fcba1a3b3c508dd59b9b4309;hp=27c64decdad2ac4372141b2e8d02503f5d15b43f;hpb=e3d227f3c9b9bbb363d34033e4fd3f909697a967;p=friendica.git diff --git a/src/Module/Api/Mastodon/Suggestions.php b/src/Module/Api/Mastodon/Suggestions.php index 27c64decda..6eb2509269 100644 --- a/src/Module/Api/Mastodon/Suggestions.php +++ b/src/Module/Api/Mastodon/Suggestions.php @@ -1,6 +1,6 @@ getRequest([ 'limit' => 40, // Maximum number of results to return. Defaults to 40. - ]); + ], $request); $suggestions = Contact\Relation::getSuggestions($uid, 0, $request['limit']); $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);