about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/search.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-30 00:43:38 +0100
committerGitHub <noreply@github.com>2019-03-30 00:43:38 +0100
commit379c3e237fd271b91073f4b4a4a1626e84a7250f (patch)
treed6286b854d5fafc4a2026231bcc06941491c6dfc /app/javascript/mastodon/actions/search.js
parentbd02ec6daa974dcd3231e73826a56e08dbeedadc (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
Diffstat (limited to 'app/javascript/mastodon/actions/search.js')
-rw-r--r--app/javascript/mastodon/actions/search.js1
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) {