about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-04-20 15:07:51 +0200
committerGitHub <noreply@github.com>2021-04-20 15:07:51 +0200
commit7762d3d27592abe60946ac26a3a2012cd3311fb1 (patch)
treea672c8037a1f9b642f334a0addf8c16e9d734c02 /app
parent23b102f66175f595f16693aaf61fa3d08cb8f799 (diff)
Change follow recommendations to be limited to 20 instead of 40 in web UI (#16077)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/actions/suggestions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/suggestions.js b/app/javascript/mastodon/actions/suggestions.js
index e3a549759..1f1116e75 100644
--- a/app/javascript/mastodon/actions/suggestions.js
+++ b/app/javascript/mastodon/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));