From 9585b1ce2e3b4be31ac0f6553535df41e5c4aa67 Mon Sep 17 00:00:00 2001 From: gutmet Date: Mon, 21 Nov 2022 20:25:55 +0100 Subject: [PATCH] add visibility type --- mastodon.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mastodon.go b/mastodon.go index 92ecc20..d33850c 100644 --- a/mastodon.go +++ b/mastodon.go @@ -148,11 +148,13 @@ func newClient(config *Config) *Client { } } +type Visibility string + const ( - VisibilityPublic = "public" - VisibilityUnlisted = "unlisted" - VisibilityFollowersOnly = "private" - VisibilityDirectMessage = "direct" + Public Visibility = "public" + Unlisted Visibility = "unlisted" + FollowersOnly Visibility = "private" + DirectMessage Visibility = "direct" ) type Toot struct {