summaryrefslogtreecommitdiff
path: root/internal/api/model
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-04-02 11:42:24 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-02 10:42:24 +0100
commitf05874be3095d3fb3cefd1a92b3c35fe3ae3bf28 (patch)
tree52f1616259b51d0a8a94a786278b9c0aa5ab2298 /internal/api/model
parent[feature] Add `enable` command to mirror existing `disable` command; update d... (diff)
downloadgotosocial-f05874be3095d3fb3cefd1a92b3c35fe3ae3bf28.tar.xz
[feature] Option to hide followers/following (#2788)
Diffstat (limited to 'internal/api/model')
-rw-r--r--internal/api/model/account.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/internal/api/model/account.go b/internal/api/model/account.go
index af2a394af..de850637e 100644
--- a/internal/api/model/account.go
+++ b/internal/api/model/account.go
@@ -94,12 +94,16 @@ type Account struct {
// CustomCSS to include when rendering this account's profile or statuses.
CustomCSS string `json:"custom_css,omitempty"`
// Account has enabled RSS feed.
+ // Key/value omitted if false.
EnableRSS bool `json:"enable_rss,omitempty"`
+ // Account has opted to hide their followers/following collections.
+ // Key/value omitted if false.
+ HideCollections bool `json:"hide_collections,omitempty"`
// Role of the account on this instance.
- // Omitted for remote accounts.
+ // Key/value omitted for remote accounts.
Role *AccountRole `json:"role,omitempty"`
// If set, indicates that this account is currently inactive, and has migrated to the given account.
- // Omitted for accounts that haven't moved, and for suspended accounts.
+ // Key/value omitted for accounts that haven't moved, and for suspended accounts.
Moved *Account `json:"moved,omitempty"`
}
@@ -172,6 +176,8 @@ type UpdateCredentialsRequest struct {
CustomCSS *string `form:"custom_css" json:"custom_css"`
// Enable RSS feed of public toots for this account at /@[username]/feed.rss
EnableRSS *bool `form:"enable_rss" json:"enable_rss"`
+ // Hide this account's following/followers collections.
+ HideCollections *bool `form:"hide_collections" json:"hide_collections"`
}
// UpdateSource is to be used specifically in an UpdateCredentialsRequest.