Add convenience constants for post visibilities
parent
e24991527b
commit
934e685e7a
|
@ -240,6 +240,14 @@ func (c *Client) authenticate(ctx context.Context, params url.Values) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convenience constants for Toot.Visibility
|
||||||
|
const (
|
||||||
|
VisibilityPublic = "public"
|
||||||
|
VisibilityUnlisted = "unlisted"
|
||||||
|
VisibilityFollowersOnly = "private"
|
||||||
|
VisibilityDirectMessage = "direct"
|
||||||
|
)
|
||||||
|
|
||||||
// Toot is struct to post status.
|
// Toot is struct to post status.
|
||||||
type Toot struct {
|
type Toot struct {
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
|
|
Loading…
Reference in New Issue