From: Eugen Rochko Date: Tue, 20 Apr 2021 13:07:51 +0000 (+0200) Subject: Change follow recommendations to be limited to 20 instead of 40 in web UI (#16077) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=7762d3d27592abe60946ac26a3a2012cd3311fb1;p=mastodon.git Change follow recommendations to be limited to 20 instead of 40 in web UI (#16077) --- 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));