Merge pull request #13666 from HankG/mastodon-api-account-search-fixes
Mastodon api account search fixes
This commit is contained in:
commit
a569068fb0
|
@ -3629,7 +3629,7 @@ class Contact
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!$show_blocked) {
|
if (!$show_blocked) {
|
||||||
$condition['server-blocked'] = true;
|
$condition['server-blocked'] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($uid == 0) {
|
if ($uid == 0) {
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user