[bugfix] Don't nil emojis + fields on blocked accounts (#2968)

* [bugfix] Don't nil emojis + fields on blocked accounts

* comment

* swagger
This commit is contained in:
tobi 2024-06-06 12:22:16 +02:00 committed by GitHub
commit 6f26b32ec3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 4 deletions

View file

@ -79,8 +79,10 @@ type Account struct {
// example: 2021-07-30T09:20:25+00:00
LastStatusAt *string `json:"last_status_at"`
// Array of custom emojis used in this account's note or display name.
// Empty for blocked accounts.
Emojis []Emoji `json:"emojis"`
// Additional metadata attached to this account's profile.
// Empty for blocked accounts.
Fields []Field `json:"fields"`
// Account has been suspended by our instance.
Suspended bool `json:"suspended,omitempty"`