mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 08:22:24 -05:00
[chore] Remove omitempty on account source; refactor tests to use prettyprint json (#1337)
* remove omitEmpty tag on account source items * update tests
This commit is contained in:
parent
5318054808
commit
eafd73c292
18 changed files with 1605 additions and 163 deletions
|
|
@ -26,11 +26,11 @@ type Source struct {
|
|||
// unlisted = Unlisted post
|
||||
// private = Followers-only post
|
||||
// direct = Direct post
|
||||
Privacy Visibility `json:"privacy,omitempty"`
|
||||
Privacy Visibility `json:"privacy"`
|
||||
// Whether new statuses should be marked sensitive by default.
|
||||
Sensitive bool `json:"sensitive,omitempty"`
|
||||
Sensitive bool `json:"sensitive"`
|
||||
// The default posting language for new statuses.
|
||||
Language string `json:"language,omitempty"`
|
||||
Language string `json:"language"`
|
||||
// The default posting format for new statuses.
|
||||
StatusFormat string `json:"status_format"`
|
||||
// Profile bio.
|
||||
|
|
@ -38,5 +38,5 @@ type Source struct {
|
|||
// Metadata about the account.
|
||||
Fields []Field `json:"fields"`
|
||||
// The number of pending follow requests.
|
||||
FollowRequestsCount int `json:"follow_requests_count,omitempty"`
|
||||
FollowRequestsCount int `json:"follow_requests_count"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue