about summary refs log tree commit diff
path: root/app/assets
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-12 14:49:28 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-12 14:49:28 +0100
commitafded319d2558369a025b1f3335cebacc9819881 (patch)
tree2e5c0cae17213c46faff3e25a07922338d0f1ce1 /app/assets
parent09218d4c0152013750dd1c127d3c8267dc45f880 (diff)
Add limit to search results
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/components/actions/compose.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/actions/compose.jsx b/app/assets/javascripts/components/actions/compose.jsx
index c9be895f1..b77a9c727 100644
--- a/app/assets/javascripts/components/actions/compose.jsx
+++ b/app/assets/javascripts/components/actions/compose.jsx
@@ -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));