From 2c9e92a254907772757cdc932fd37667fc9218bb Mon Sep 17 00:00:00 2001 From: Grishka Date: Wed, 31 Jul 2024 15:00:55 +0300 Subject: [PATCH] Increase limit on explore -> news --- .../android/api/requests/trends/GetTrendingLinks.java | 3 ++- .../android/fragments/discover/DiscoverNewsFragment.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/requests/trends/GetTrendingLinks.java b/mastodon/src/main/java/org/joinmastodon/android/api/requests/trends/GetTrendingLinks.java index eeea39b3..6442b3f1 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/requests/trends/GetTrendingLinks.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/requests/trends/GetTrendingLinks.java @@ -8,7 +8,8 @@ import org.joinmastodon.android.model.Card; import java.util.List; public class GetTrendingLinks extends MastodonAPIRequest>{ - public GetTrendingLinks(){ + public GetTrendingLinks(int limit){ super(HttpMethod.GET, "/trends/links", new TypeToken<>(){}); + addQueryParameter("limit", String.valueOf(limit)); } } diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverNewsFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverNewsFragment.java index d7ca3574..c3a73fae 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverNewsFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverNewsFragment.java @@ -45,7 +45,7 @@ public class DiscoverNewsFragment extends BaseRecyclerFragment(this){ @Override public void onSuccess(List result){