add support for language
This commit is contained in:
parent
be61205708
commit
5f0c9a21c2
3 changed files with 11 additions and 0 deletions
|
@ -365,6 +365,9 @@ func (c *Client) PostStatus(ctx context.Context, toot *Toot) (*Status, error) {
|
|||
if toot.Visibility != "" {
|
||||
params.Set("visibility", fmt.Sprint(toot.Visibility))
|
||||
}
|
||||
if toot.Language != "" {
|
||||
params.Set("language", fmt.Sprint(toot.Language))
|
||||
}
|
||||
if toot.Sensitive {
|
||||
params.Set("sensitive", "true")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue