Increase limit on explore -> news

This commit is contained in:
Grishka 2024-07-31 15:00:55 +03:00
parent 30fcb19f9b
commit 2c9e92a254
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,8 @@ import org.joinmastodon.android.model.Card;
import java.util.List;
public class GetTrendingLinks extends MastodonAPIRequest<List<Card>>{
public GetTrendingLinks(){
public GetTrendingLinks(int limit){
super(HttpMethod.GET, "/trends/links", new TypeToken<>(){});
addQueryParameter("limit", String.valueOf(limit));
}
}

View File

@ -45,7 +45,7 @@ public class DiscoverNewsFragment extends BaseRecyclerFragment<DiscoverNewsFragm
@Override
protected void doLoadData(int offset, int count){
currentRequest=new GetTrendingLinks()
currentRequest=new GetTrendingLinks(40)
.setCallback(new SimpleCallback<>(this){
@Override
public void onSuccess(List<Card> result){