testrig: add testing profile field for admin user

This commit is contained in:
f0x 2023-05-11 14:31:46 +02:00
parent 4e5278d215
commit 80490c183e

View file

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