Fix: on `mstdn.exe toot -i ID`: ID (and default) was int64 -> string
parent
d38a3e6dfc
commit
aaeb9f1de2
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue