Accounts/Statuses: get 200 statuses instead of 20

This commit is contained in:
gutmet 2022-11-23 23:46:35 +01:00
parent 1cc330baf3
commit 12af5ce91b

View File

@ -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)