Add convenience constants for post visibilities
This commit is contained in:
parent
e24991527b
commit
934e685e7a
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user