]> cat aescling's git repositories - mastodon.git/commitdiff
Fix search in web UI not setting a limit, restore limit of 5 (#10421)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 29 Mar 2019 23:43:38 +0000 (00:43 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2019 23:43:38 +0000 (00:43 +0100)
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

index b670d25c3c50728a291ec318f3247a1a94e18595..7c06670eb538f4efdf0fe85024d31787d7cf6b81 100644 (file)
@@ -37,6 +37,7 @@ export function submitSearch() {
       params: {
         q: value,
         resolve: true,
+        limit: 5,
       },
     }).then(response => {
       if (response.data.accounts) {