diff options
Diffstat (limited to 'pkg/mastotypes/source.go')
-rw-r--r-- | pkg/mastotypes/source.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/mastotypes/source.go b/pkg/mastotypes/source.go index e4a2ca06a..4142540a7 100644 --- a/pkg/mastotypes/source.go +++ b/pkg/mastotypes/source.go @@ -18,5 +18,24 @@ package mastotypes +// Source represents display or publishing preferences of user's own account. +// Returned as an additional entity when verifying and updated credentials, as an attribute of Account. +// See https://docs.joinmastodon.org/entities/source/ type Source struct { + // The default post privacy to be used for new statuses. + // public = Public post + // unlisted = Unlisted post + // private = Followers-only post + // direct = Direct post + Privacy string `json:"privacy,omitempty"` + // Whether new statuses should be marked sensitive by default. + Sensitive bool `json:"sensitive,omitempty"` + // The default posting language for new statuses. + Language string `json:"language,omitempty"` + // Profile bio. + Note string `json:"note"` + // Metadata about the account. + Fields []Field `json:"fields"` + // The number of pending follow requests. + FollowRequestsCount int `json:"follow_requests_count,omitempty"` } |