diff --git a/testrig/testmodels.go b/testrig/testmodels.go index 60c4b919a..e991f9655 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -395,39 +395,41 @@ func NewTestAccounts() map[string]*gtsmodel.Account { AvatarMediaAttachmentID: "", HeaderMediaAttachmentID: "", DisplayName: "", - Fields: []*gtsmodel.Field{}, - Note: "", - NoteRaw: "", - Memorial: FalseBool(), - MovedToAccountID: "", - CreatedAt: TimeMustParse("2022-05-17T13:10:59Z"), - UpdatedAt: TimeMustParse("2022-05-17T13:10:59Z"), - Bot: FalseBool(), - Reason: "", - Locked: FalseBool(), - Discoverable: TrueBool(), - Privacy: gtsmodel.VisibilityPublic, - Sensitive: FalseBool(), - Language: "en", - URI: "http://localhost:8080/users/admin", - URL: "http://localhost:8080/@admin", - PublicKeyURI: "http://localhost:8080/users/admin#main-key", - FetchedAt: time.Time{}, - InboxURI: "http://localhost:8080/users/admin/inbox", - OutboxURI: "http://localhost:8080/users/admin/outbox", - FollowersURI: "http://localhost:8080/users/admin/followers", - FollowingURI: "http://localhost:8080/users/admin/following", - FeaturedCollectionURI: "http://localhost:8080/users/admin/collections/featured", - ActorType: ap.ActorPerson, - AlsoKnownAs: "", - PrivateKey: &rsa.PrivateKey{}, - PublicKey: &rsa.PublicKey{}, - SensitizedAt: time.Time{}, - SilencedAt: time.Time{}, - SuspendedAt: time.Time{}, - HideCollections: FalseBool(), - SuspensionOrigin: "", - EnableRSS: TrueBool(), + Fields: []*gtsmodel.Field{ + {Name: "pronouns", Value: "they/them", VerifiedAt: TimeMustParse("0001-01-01T00:00:00Z")}, + }, + Note: "", + NoteRaw: "", + Memorial: FalseBool(), + MovedToAccountID: "", + CreatedAt: TimeMustParse("2022-05-17T13:10:59Z"), + UpdatedAt: TimeMustParse("2022-05-17T13:10:59Z"), + Bot: FalseBool(), + Reason: "", + Locked: FalseBool(), + Discoverable: TrueBool(), + Privacy: gtsmodel.VisibilityPublic, + Sensitive: FalseBool(), + Language: "en", + URI: "http://localhost:8080/users/admin", + URL: "http://localhost:8080/@admin", + PublicKeyURI: "http://localhost:8080/users/admin#main-key", + FetchedAt: time.Time{}, + InboxURI: "http://localhost:8080/users/admin/inbox", + OutboxURI: "http://localhost:8080/users/admin/outbox", + FollowersURI: "http://localhost:8080/users/admin/followers", + FollowingURI: "http://localhost:8080/users/admin/following", + FeaturedCollectionURI: "http://localhost:8080/users/admin/collections/featured", + ActorType: ap.ActorPerson, + AlsoKnownAs: "", + PrivateKey: &rsa.PrivateKey{}, + PublicKey: &rsa.PublicKey{}, + SensitizedAt: time.Time{}, + SilencedAt: time.Time{}, + SuspendedAt: time.Time{}, + HideCollections: FalseBool(), + SuspensionOrigin: "", + EnableRSS: TrueBool(), }, "local_account_1": { ID: "01F8MH1H7YV1Z7D2C8K2730QBF",