also convert to string in attachments, pagenation

This commit is contained in:
Yasuhiro Matsumoto 2017-10-25 10:22:39 +09:00
parent e03b8ccefb
commit 730317321a
7 changed files with 50 additions and 50 deletions

View file

@ -25,7 +25,7 @@ func cmdFollowers(c *cli.Context) error {
return err
}
followers = append(followers, fs...)
if pg.MaxID == 0 {
if pg.MaxID == "" {
break
}
time.Sleep(10 * time.Second)

View file

@ -3,6 +3,7 @@ package main
import (
"context"
"errors"
"fmt"
"github.com/mattn/go-mastodon"
"github.com/urfave/cli"
@ -26,7 +27,7 @@ func cmdToot(c *cli.Context) error {
client := c.App.Metadata["client"].(*mastodon.Client)
_, err := client.PostStatus(context.Background(), &mastodon.Toot{
Status: toot,
InReplyToID: c.Int64("i"),
InReplyToID: mastodon.ID(fmt.Sprint(c.Int64("i"))),
})
return err
}