From 591360f2a8727e3b1f9e5f28ed3f6d983d6464b8 Mon Sep 17 00:00:00 2001 From: r Date: Thu, 26 Dec 2019 11:25:29 +0000 Subject: Add post format selection --- mastodon/status.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mastodon/status.go') diff --git a/mastodon/status.go b/mastodon/status.go index c36b6cb..edd88e9 100644 --- a/mastodon/status.go +++ b/mastodon/status.go @@ -266,6 +266,9 @@ func (c *Client) PostStatus(ctx context.Context, toot *Toot) (*Status, error) { if toot.SpoilerText != "" { params.Set("spoiler_text", toot.SpoilerText) } + if toot.ContentType != "" { + params.Set("content_type", toot.ContentType) + } var status Status err := c.doAPI(ctx, http.MethodPost, "/api/v1/statuses", params, &status, nil) -- cgit v1.2.3