From 379c84b7abb7582d90f8dfae0b97c84ed238b15b Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Fri, 24 Nov 2023 17:06:41 -0500 Subject: [PATCH] Fix call order of Mastodon Top level search on accounts --- src/Module/Api/Mastodon/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php index 75dc05e24..07a0d6074 100644 --- a/src/Module/Api/Mastodon/Search.php +++ b/src/Module/Api/Mastodon/Search.php @@ -115,7 +115,7 @@ class Search extends BaseApi } $accounts = []; - foreach (Contact::searchByName($q, '', $following ? $uid : 0, false, $limit, $offset) as $contact) { + foreach (Contact::searchByName($q, '', false, $following ? $uid : 0, $limit, $offset) as $contact) { $accounts[] = DI::mstdnAccount()->createFromContactId($contact['id'], $uid); }