Accounts/Statuses: get 200 statuses instead of 20
This commit is contained in:
parent
1cc330baf3
commit
12af5ce91b
|
@ -143,10 +143,9 @@ func UpdateCurrentAccount(profile *Profile) (*Account, error) {
|
||||||
|
|
||||||
func (a *Account) GetStatuses(excludeBoosts bool, pg *Pagination) ([]*Status, error) {
|
func (a *Account) GetStatuses(excludeBoosts bool, pg *Pagination) ([]*Status, error) {
|
||||||
var statuses []*Status
|
var statuses []*Status
|
||||||
var params url.Values
|
params := url.Values{}
|
||||||
params = nil
|
params.Set("limit", "200")
|
||||||
if excludeBoosts {
|
if excludeBoosts {
|
||||||
params = url.Values{}
|
|
||||||
params.Set("exclude_reblogs", "true")
|
params.Set("exclude_reblogs", "true")
|
||||||
}
|
}
|
||||||
err := doAPI(http.MethodGet, fmt.Sprintf("/api/v1/accounts/%s/statuses", url.PathEscape(a.GetID())), params, &statuses, pg)
|
err := doAPI(http.MethodGet, fmt.Sprintf("/api/v1/accounts/%s/statuses", url.PathEscape(a.GetID())), params, &statuses, pg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user