summaryrefslogtreecommitdiff
path: root/internal/api/model/account.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-02-16 14:20:23 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-16 13:20:23 +0000
commitb5993095fad2d18ce29e92b0ae1e5e1450bd7f4a (patch)
tree27714bd915eabf8f8f0ca52a5a2ec35864ba93c1 /internal/api/model/account.go
parent[bugfix] Set cache-control max-age dynamically for s3 (#1510) (diff)
downloadgotosocial-b5993095fad2d18ce29e92b0ae1e5e1450bd7f4a.tar.xz
[bugfix] Set 'discoverable' properly on API accounts (#1511)v0.7.0
Diffstat (limited to 'internal/api/model/account.go')
-rw-r--r--internal/api/model/account.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/model/account.go b/internal/api/model/account.go
index 8199532ca..ddfe6cc3a 100644
--- a/internal/api/model/account.go
+++ b/internal/api/model/account.go
@@ -45,7 +45,7 @@ type Account struct {
// Account manually approves follow requests.
Locked bool `json:"locked"`
// Account has opted into discovery features.
- Discoverable bool `json:"discoverable,omitempty"`
+ Discoverable bool `json:"discoverable"`
// Account identifies as a bot.
Bot bool `json:"bot"`
// When the account was created (ISO 8601 Datetime).