diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-30 00:43:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-30 00:43:38 +0100 |
commit | 379c3e237fd271b91073f4b4a4a1626e84a7250f (patch) | |
tree | d6286b854d5fafc4a2026231bcc06941491c6dfc | |
parent | bd02ec6daa974dcd3231e73826a56e08dbeedadc (diff) |
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
-rw-r--r-- | app/javascript/mastodon/actions/search.js | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |