]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Change follow recommendations to be limited to 20 instead of 40 in web UI
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 20 Apr 2021 13:07:51 +0000 (15:07 +0200)
committerClaire <claire.github-309c@sitedethib.com>
Fri, 7 May 2021 20:00:11 +0000 (22:00 +0200)
Port 7762d3d27592abe60946ac26a3a2012cd3311fb1 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/actions/suggestions.js

index b8ce5825cbbe937258cac6714d7f27e6fe2ec752..7070250e3e954e3687a2a4fbee737dffe437accd 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));