Add limit to search results

This commit is contained in:
Eugen Rochko
2016-11-12 14:49:28 +01:00
parent 09218d4c01
commit afded319d2
3 changed files with 12 additions and 14 deletions

View File

@ -148,7 +148,8 @@ export function fetchComposeSuggestions(token) {
api(getState).get('/api/v1/accounts/search', {
params: {
q: token,
resolve: false
resolve: false,
limit: 4
}
}).then(response => {
dispatch(readyComposeSuggestions(token, response.data));