also convert to string in attachments, pagenation
This commit is contained in:
parent
e03b8ccefb
commit
730317321a
7 changed files with 50 additions and 50 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue