]> cat aescling's git repositories - mastodon.git/commitdiff
Change follow recommendations to be limited to 20 instead of 40 in web UI (#16077)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 20 Apr 2021 13:07:51 +0000 (15:07 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Apr 2021 13:07:51 +0000 (15:07 +0200)
app/javascript/mastodon/actions/suggestions.js

index e3a54975973c836bc91ee6874effd268eb0e1a5a..1f1116e75eac1a8b77fdf03752b2103080294887 100644 (file)
@@ -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));