Browse Source

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
pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
379c3e237f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/javascript/mastodon/actions/search.js

+ 1
- 0
app/javascript/mastodon/actions/search.js View File

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

Loading…
Cancel
Save