Fix type of IDs.
In Mastodon 2.0 API specification, IDs are typed as string.
This commit is contained in:
parent
98d1ab17f1
commit
3274f13917
5 changed files with 82 additions and 82 deletions
|
@ -51,7 +51,7 @@ func ExamplePagination() {
|
|||
var followers []*mastodon.Account
|
||||
var pg mastodon.Pagination
|
||||
for {
|
||||
fs, err := c.GetAccountFollowers(context.Background(), 1, &pg)
|
||||
fs, err := c.GetAccountFollowers(context.Background(), "1", &pg)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue