summaryrefslogtreecommitdiff
path: root/internal/api/model/account.go
diff options
context:
space:
mode:
authorLibravatar pnwmatt <180812017+pnwmatt@users.noreply.github.com>2025-02-08 04:04:30 -0800
committerLibravatar GitHub <noreply@github.com>2025-02-08 13:04:30 +0100
commite10de8464ae577d0a917482d01e7e01fbaf63460 (patch)
tree4fb48ed5fe37e5f7faa417ab79c98ff62178d48f /internal/api/model/account.go
parent[chore] Update drone + goreleaser (#3742) (diff)
downloadgotosocial-e10de8464ae577d0a917482d01e7e01fbaf63460.tar.xz
[bug] Add missing `group` property to the Account model (#3746)
* Stub out account's Group parameter * Fix typo in Contributing documentation * Update swagger and match style * Update the swagger command to mimic test/swagger.sh * Fix tests for new `group` param in Account model * More test changes for new `group` param in Account * Continuing test changes for `group` param stubbing * Another round of `group` stubbing for tests
Diffstat (limited to 'internal/api/model/account.go')
-rw-r--r--internal/api/model/account.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/model/account.go b/internal/api/model/account.go
index a27033d5d..d14ef9047 100644
--- a/internal/api/model/account.go
+++ b/internal/api/model/account.go
@@ -126,6 +126,8 @@ type Account struct {
// If set, indicates that this account is currently inactive, and has migrated to the given account.
// Key/value omitted for accounts that haven't moved, and for suspended accounts.
Moved *Account `json:"moved,omitempty"`
+ // Account identifies as a Group actor.
+ Group bool `json:"group"`
}
// WebAccount is like Account, but with