Implement Mastodon account's Reply method

This commit is contained in:
Christian Muehlhaeuser 2019-05-02 13:32:31 +02:00
parent 482894f1e4
commit f0df5dab88
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E

View file

@ -85,7 +85,11 @@ func (mod *Account) Post(message string) error {
// Reply posts a new reply-status
func (mod *Account) Reply(replyid string, message string) error {
return nil
_, err := mod.client.PostStatus(context.Background(), &mastodon.Toot{
Status: message,
InReplyToID: mastodon.ID(replyid),
})
return err
}
// Share boosts a post