diff --git a/src/Model/Contact.php b/src/Model/Contact.php index d2e04c998e..1f9dd9782d 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -3629,7 +3629,7 @@ class Contact ]; if (!$show_blocked) { - $condition['server-blocked'] = true; + $condition['server-blocked'] = false; } if ($uid == 0) { diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php index 75dc05e244..07a0d6074d 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); }