Fix call order of Mastodon Top level search on accounts

This commit is contained in:
Hank Grabowski 2023-11-24 17:06:41 -05:00
parent ce5aa016e1
commit 379c84b7ab

View File

@ -115,7 +115,7 @@ class Search extends BaseApi
} }
$accounts = []; $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); $accounts[] = DI::mstdnAccount()->createFromContactId($contact['id'], $uid);
} }