From 20769a332a89053a61c929c75435debaba50d53c Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 30 Mar 2019 00:43:38 +0100 Subject: [PATCH] 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 --- app/javascript/mastodon/actions/search.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/mastodon/actions/search.js b/app/javascript/mastodon/actions/search.js index b670d25c3c..7c06670eb5 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) {