mirror of
https://github.com/muesli/telephant
synced 2024-12-11 20:42:27 +00:00
Implement Mastodon account's Reply method
This commit is contained in:
parent
482894f1e4
commit
f0df5dab88
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue