From: Michael Date: Sat, 26 Nov 2022 02:08:34 +0000 (+0000) Subject: Issue 12266: APISuggestions should now work X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8879d93aad0313c2fcba1a3b3c508dd59b9b4309;p=friendica.git Issue 12266: APISuggestions should now work --- diff --git a/src/Module/Api/Mastodon/Suggestions.php b/src/Module/Api/Mastodon/Suggestions.php index f623a79a98..6eb2509269 100644 --- a/src/Module/Api/Mastodon/Suggestions.php +++ b/src/Module/Api/Mastodon/Suggestions.php @@ -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);