aboutsummaryrefslogtreecommitdiff
path: root/mastodon/status.go
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-26 11:25:29 +0000
committerr <r@freesoftwareextremist.com>2019-12-26 11:25:29 +0000
commit591360f2a8727e3b1f9e5f28ed3f6d983d6464b8 (patch)
treea65f4b12d04897cb7bdbf6747ba03cca29e3441c /mastodon/status.go
parentac4ff88adb9a2526555757f8d4e65c69cafb3788 (diff)
downloadbloat-591360f2a8727e3b1f9e5f28ed3f6d983d6464b8.tar.gz
bloat-591360f2a8727e3b1f9e5f28ed3f6d983d6464b8.zip
Add post format selection
Diffstat (limited to 'mastodon/status.go')
-rw-r--r--mastodon/status.go3
1 files changed, 3 insertions, 0 deletions
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)