about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-04-20 15:07:51 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-05-07 22:00:11 +0200
commit2f2c77c7476b207b85bff40ecbaa7b08392c3c50 (patch)
tree2c145962bb595d93d2a1074f1770fa347b665d92
parent0936ae413204a2b8e7da1b4b14a65eb856e30e74 (diff)
[Glitch] Change follow recommendations to be limited to 20 instead of 40 in web UI
Port 7762d3d27592abe60946ac26a3a2012cd3311fb1 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
-rw-r--r--app/javascript/flavours/glitch/actions/suggestions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/actions/suggestions.js b/app/javascript/flavours/glitch/actions/suggestions.js
index b8ce5825c..7070250e3 100644
--- a/app/javascript/flavours/glitch/actions/suggestions.js
+++ b/app/javascript/flavours/glitch/actions/suggestions.js
@@ -12,7 +12,7 @@ export function fetchSuggestions(withRelationships = false) {
   return (dispatch, getState) => {
     dispatch(fetchSuggestionsRequest());
 
-    api(getState).get('/api/v2/suggestions').then(response => {
+    api(getState).get('/api/v2/suggestions', { params: { limit: 20 } }).then(response => {
       dispatch(importFetchedAccounts(response.data.map(x => x.account)));
       dispatch(fetchSuggestionsSuccess(response.data));