diff --git a/cmd/mstdn/cmd_toot.go b/cmd/mstdn/cmd_toot.go index b2e41f4..7c2ee63 100644 --- a/cmd/mstdn/cmd_toot.go +++ b/cmd/mstdn/cmd_toot.go @@ -27,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: mastodon.ID(fmt.Sprint(c.Int64("i"))), + InReplyToID: mastodon.ID(fmt.Sprint(c.String("i"))), }) return err } diff --git a/cmd/mstdn/main.go b/cmd/mstdn/main.go index 392f748..7c67584 100644 --- a/cmd/mstdn/main.go +++ b/cmd/mstdn/main.go @@ -199,10 +199,10 @@ func makeApp() *cli.App { Usage: "post utf-8 string from a file(\"-\" means STDIN)", Value: "", }, - cli.IntFlag{ + cli.StringFlag{ Name: "i", Usage: "in-reply-to", - Value: 0, + Value: "", }, }, Action: cmdToot,