From 934e685e7a8cdbaa20dec4e8f1e69028edd8a423 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Thu, 13 Jun 2019 22:21:37 -0500 Subject: [PATCH] Add convenience constants for post visibilities --- mastodon.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mastodon.go b/mastodon.go index fa9adf7..44dde22 100644 --- a/mastodon.go +++ b/mastodon.go @@ -240,6 +240,14 @@ func (c *Client) authenticate(ctx context.Context, params url.Values) error { return nil } +// Convenience constants for Toot.Visibility +const ( + VisibilityPublic = "public" + VisibilityUnlisted = "unlisted" + VisibilityFollowersOnly = "private" + VisibilityDirectMessage = "direct" +) + // Toot is struct to post status. type Toot struct { Status string `json:"status"`