From 12af5ce91b563c2d087c35a5177d9a775d095f6e Mon Sep 17 00:00:00 2001 From: gutmet Date: Wed, 23 Nov 2022 23:46:35 +0100 Subject: [PATCH] Accounts/Statuses: get 200 statuses instead of 20 --- accounts.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/accounts.go b/accounts.go index 36caf29..930cd28 100644 --- a/accounts.go +++ b/accounts.go @@ -143,10 +143,9 @@ func UpdateCurrentAccount(profile *Profile) (*Account, error) { func (a *Account) GetStatuses(excludeBoosts bool, pg *Pagination) ([]*Status, error) { var statuses []*Status - var params url.Values - params = nil + params := url.Values{} + params.Set("limit", "200") if excludeBoosts { - params = url.Values{} params.Set("exclude_reblogs", "true") } err := doAPI(http.MethodGet, fmt.Sprintf("/api/v1/accounts/%s/statuses", url.PathEscape(a.GetID())), params, &statuses, pg)