From 9dc1ecbec9135f0c3c5a886670e93f54fa26dc8b Mon Sep 17 00:00:00 2001 From: pnwmatt <180812017+pnwmatt@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:33:50 -0800 Subject: [PATCH] Update swagger and match style --- docs/api/swagger.yaml | 7 +++++-- internal/api/model/account.go | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index fd361a9fa..df8f09321 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -301,8 +301,7 @@ definitions: type: integer x-go-name: FollowingCount group: - description: Indicates that the account represents a Group actor. - format: boolean + description: Account identifies as a Group actor. type: boolean x-go-name: Group header: @@ -2444,6 +2443,10 @@ definitions: format: int64 type: integer x-go-name: FollowingCount + group: + description: Account identifies as a Group actor. + type: boolean + x-go-name: Group header: description: Web location of the account's header image. example: https://example.org/media/some_user/header/original/header.jpeg diff --git a/internal/api/model/account.go b/internal/api/model/account.go index c60ef12d6..d14ef9047 100644 --- a/internal/api/model/account.go +++ b/internal/api/model/account.go @@ -126,7 +126,7 @@ 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 + // Account identifies as a Group actor. Group bool `json:"group"` }