Update swagger and match style

This commit is contained in:
pnwmatt 2025-02-06 18:33:50 -08:00
commit 9dc1ecbec9
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View file

@ -301,8 +301,7 @@ definitions:
type: integer type: integer
x-go-name: FollowingCount x-go-name: FollowingCount
group: group:
description: Indicates that the account represents a Group actor. description: Account identifies as a Group actor.
format: boolean
type: boolean type: boolean
x-go-name: Group x-go-name: Group
header: header:
@ -2444,6 +2443,10 @@ definitions:
format: int64 format: int64
type: integer type: integer
x-go-name: FollowingCount x-go-name: FollowingCount
group:
description: Account identifies as a Group actor.
type: boolean
x-go-name: Group
header: header:
description: Web location of the account's header image. description: Web location of the account's header image.
example: https://example.org/media/some_user/header/original/header.jpeg example: https://example.org/media/some_user/header/original/header.jpeg

View file

@ -126,7 +126,7 @@ type Account struct {
// If set, indicates that this account is currently inactive, and has migrated to the given account. // 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. // Key/value omitted for accounts that haven't moved, and for suspended accounts.
Moved *Account `json:"moved,omitempty"` Moved *Account `json:"moved,omitempty"`
// Account identifies as a Group actor // Account identifies as a Group actor.
Group bool `json:"group"` Group bool `json:"group"`
} }