mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-24 12:46:20 -06:00
Stub out account's Group parameter
This commit is contained in:
parent
00bd0f7658
commit
8bc630ec53
3 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue