]> git.mxchange.org Git - friendica.git/commitdiff
Issue 12266: APISuggestions should now work
authorMichael <heluecht@pirati.ca>
Sat, 26 Nov 2022 02:08:34 +0000 (02:08 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 26 Nov 2022 02:08:34 +0000 (02:08 +0000)
src/Module/Api/Mastodon/Suggestions.php

index f623a79a98a9eb86cfcbaa08c5e0a4d2951cb0a0..6eb2509269cd33c625a9114a592fbec7d1ff90c9 100644 (file)
@@ -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);