summaryrefslogtreecommitdiff
path: root/internal/api/model/source.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-01-13 17:02:45 +0100
committerLibravatar GitHub <noreply@github.com>2023-01-13 17:02:45 +0100
commiteafd73c29204072050591a0579e0cedb174e6d38 (patch)
tree8cb581647e00f366395d97d27c36c6099e93754b /internal/api/model/source.go
parent[performance] media processing improvements (#1288) (diff)
downloadgotosocial-eafd73c29204072050591a0579e0cedb174e6d38.tar.xz
[chore] Remove omitempty on account source; refactor tests to use prettyprint json (#1337)
* remove omitEmpty tag on account source items * update tests
Diffstat (limited to 'internal/api/model/source.go')
-rw-r--r--internal/api/model/source.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/api/model/source.go b/internal/api/model/source.go
index f3b7beb49..9e2eafa0a 100644
--- a/internal/api/model/source.go
+++ b/internal/api/model/source.go
@@ -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"`
}