From: Eugen Rochko Date: Fri, 29 Mar 2019 23:43:38 +0000 (+0100) Subject: Fix search in web UI not setting a limit, restore limit of 5 (#10421) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=379c3e237fd271b91073f4b4a4a1626e84a7250f;p=mastodon.git Fix search in web UI not setting a limit, restore limit of 5 (#10421) The search API now supports returning more results and pagination, but until the web UI implements pagination, it makes no sense to dump so many results at once. This fix restores the behaviour before the API change --- diff --git a/app/javascript/mastodon/actions/search.js b/app/javascript/mastodon/actions/search.js index b670d25c3..7c06670eb 100644 --- a/app/javascript/mastodon/actions/search.js +++ b/app/javascript/mastodon/actions/search.js @@ -37,6 +37,7 @@ export function submitSearch() { params: { q: value, resolve: true, + limit: 5, }, }).then(response => { if (response.data.accounts) {