From 6f26b32ec3ed57ed3b04cba357abb9ee5060f229 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 6 Jun 2024 12:22:16 +0200 Subject: [bugfix] Don't nil emojis + fields on blocked accounts (#2968) * [bugfix] Don't nil emojis + fields on blocked accounts * comment * swagger --- internal/api/model/account.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/api/model') diff --git a/internal/api/model/account.go b/internal/api/model/account.go index de850637e..a2f7b46b6 100644 --- a/internal/api/model/account.go +++ b/internal/api/model/account.go @@ -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"` -- cgit v1.2.3