Browse Source

Change follow recommendations to be limited to 20 instead of 40 in web UI (#16077)

closed-social-v3
Eugen Rochko 2 years ago
committed by GitHub
parent
commit
7762d3d275
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/actions/suggestions.js

+ 1
- 1
app/javascript/mastodon/actions/suggestions.js View File

@ -12,7 +12,7 @@ export function fetchSuggestions(withRelationships = false) {
return (dispatch, getState) => { return (dispatch, getState) => {
dispatch(fetchSuggestionsRequest()); 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(importFetchedAccounts(response.data.map(x => x.account)));
dispatch(fetchSuggestionsSuccess(response.data)); dispatch(fetchSuggestionsSuccess(response.data));

Loading…
Cancel
Save