From 4e0488acfecf1960e9c60aeb578905b42406616f Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:34:38 +0100 Subject: [PATCH] [bugfix] fix array type for also_known_as_uris (#2553) --- internal/gtsmodel/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gtsmodel/account.go b/internal/gtsmodel/account.go index 02d386719..fb6c54bec 100644 --- a/internal/gtsmodel/account.go +++ b/internal/gtsmodel/account.go @@ -52,7 +52,7 @@ type Account struct { Note string `bun:""` // A note that this account has on their profile (ie., the account's bio/description of themselves) NoteRaw string `bun:""` // The raw contents of .Note without conversion to HTML, only available when requester = target Memorial *bool `bun:",default:false"` // Is this a memorial account, ie., has the user passed away? - AlsoKnownAsURIs []string `bun:"also_known_as_uris,nullzero"` // This account is associated with these account URIs. + AlsoKnownAsURIs []string `bun:"also_known_as_uris,array"` // This account is associated with these account URIs. AlsoKnownAs []*Account `bun:"-"` // This account is associated with these accounts (field not stored in the db). MovedToURI string `bun:",nullzero"` // This account has moved to this account URI. MovedTo *Account `bun:"-"` // This account has moved to this account (field not stored in the db).