Stub out account's Group parameter

This commit is contained in:
pnwmatt 2025-02-06 17:50:29 -08:00
commit 8bc630ec53
No known key found for this signature in database
3 changed files with 8 additions and 0 deletions

View file

@ -300,6 +300,11 @@ definitions:
format: int64
type: integer
x-go-name: FollowingCount
group:
description: Indicates that the account represents a Group actor.
format: boolean
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

View file

@ -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

View file

@ -388,6 +388,7 @@ func (c *Converter) accountToAPIAccountPublic(ctx context.Context, a *gtsmodel.A
EnableRSS: enableRSS,
HideCollections: hideCollections,
Roles: roles,
Group: false,
}
// Bodge default avatar + header in,