diff options
Diffstat (limited to 'testrig/testmodels.go')
-rw-r--r-- | testrig/testmodels.go | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go index 77274474c..220a3d5ac 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -793,10 +793,10 @@ func NewTestStatuses() map[string]*gtsmodel.Status { URI: "http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R", URL: "http://localhost:8080/@admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R", Content: "hello world! #welcome ! first post on the instance :rainbow: !", - Attachments: []string{"01F8MH6NEM8D7527KZAECTCR76"}, - Tags: []string{"01F8MHA1A2NF9MJ3WCCQ3K8BSZ"}, - Mentions: []string{}, - Emojis: []string{"01F8MH9H8E4VG3KDYJR9EGPXCQ"}, + AttachmentIDs: []string{"01F8MH6NEM8D7527KZAECTCR76"}, + TagIDs: []string{"01F8MHA1A2NF9MJ3WCCQ3K8BSZ"}, + MentionIDs: []string{}, + EmojiIDs: []string{"01F8MH9H8E4VG3KDYJR9EGPXCQ"}, CreatedAt: time.Now().Add(-71 * time.Hour), UpdatedAt: time.Now().Add(-71 * time.Hour), Local: true, @@ -917,7 +917,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status { URI: "http://localhost:8080/users/the_mighty_zork/statuses/01F8MH82FYRXD2RC6108DAJ5HB", URL: "http://localhost:8080/@the_mighty_zork/statuses/01F8MH82FYRXD2RC6108DAJ5HB", Content: "here's a little gif of trent", - Attachments: []string{"01F8MH7TDVANYKWVE8VVKFPJTJ"}, + AttachmentIDs: []string{"01F8MH7TDVANYKWVE8VVKFPJTJ"}, CreatedAt: time.Now().Add(-1 * time.Hour), UpdatedAt: time.Now().Add(-1 * time.Hour), Local: true, @@ -942,7 +942,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status { URI: "http://localhost:8080/users/the_mighty_zork/statuses/01FCTA44PW9H1TB328S9AQXKDS", URL: "http://localhost:8080/@the_mighty_zork/statuses/01FCTA44PW9H1TB328S9AQXKDS", Content: "hi!", - Attachments: []string{}, + AttachmentIDs: []string{}, CreatedAt: time.Now().Add(-1 * time.Minute), UpdatedAt: time.Now().Add(-1 * time.Minute), Local: true, @@ -1062,10 +1062,11 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01FCQSQ667XHJ9AV9T27SJJSX5", URI: "http://localhost:8080/users/1happyturtle/statuses/01FCQSQ667XHJ9AV9T27SJJSX5", URL: "http://localhost:8080/@1happyturtle/statuses/01FCQSQ667XHJ9AV9T27SJJSX5", - Content: "🐢 hi zork! 🐢", + Content: "🐢 @the_mighty_zork hi zork! 🐢", CreatedAt: time.Now().Add(-1 * time.Minute), UpdatedAt: time.Now().Add(-1 * time.Minute), Local: true, + MentionIDs: []string{"01FDF2HM2NF6FSRZCDEDV451CN"}, AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", InReplyToID: "01F8MHAMCHF6Y650WCRSCP4WMY", InReplyToAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", @@ -1119,16 +1120,28 @@ func NewTestTags() map[string]*gtsmodel.Tag { func NewTestMentions() map[string]*gtsmodel.Mention { return map[string]*gtsmodel.Mention{ "zork_mention_foss_satan": { - ID: "01FCTA2Y6FGHXQA4ZE6N5NMNEX", - StatusID: "01FCTA44PW9H1TB328S9AQXKDS", - CreatedAt: time.Now().Add(-1 * time.Minute), - UpdatedAt: time.Now().Add(-1 * time.Minute), - OriginAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - OriginAccountURI: "http://localhost:8080/users/the_mighty_zork", - TargetAccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX", - NameString: "@foss_satan@fossbros-anonymous.io", - MentionedAccountURI: "http://fossbros-anonymous.io/users/foss_satan", - MentionedAccountURL: "http://fossbros-anonymous.io/@foss_satan", + ID: "01FCTA2Y6FGHXQA4ZE6N5NMNEX", + StatusID: "01FCTA44PW9H1TB328S9AQXKDS", + CreatedAt: time.Now().Add(-1 * time.Minute), + UpdatedAt: time.Now().Add(-1 * time.Minute), + OriginAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", + OriginAccountURI: "http://localhost:8080/users/the_mighty_zork", + TargetAccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX", + NameString: "@foss_satan@fossbros-anonymous.io", + TargetAccountURI: "http://fossbros-anonymous.io/users/foss_satan", + TargetAccountURL: "http://fossbros-anonymous.io/@foss_satan", + }, + "local_user_2_mention_zork": { + ID: "01FDF2HM2NF6FSRZCDEDV451CN", + StatusID: "01FCQSQ667XHJ9AV9T27SJJSX5", + CreatedAt: time.Now().Add(-1 * time.Minute), + UpdatedAt: time.Now().Add(-1 * time.Minute), + OriginAccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", + OriginAccountURI: "http://localhost:8080/users/1happyturtle", + TargetAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", + NameString: "@the_mighty_zork", + TargetAccountURI: "http://localhost:8080/users/the_mighty_zork", + TargetAccountURL: "http://localhost:8080/@the_mighty_zork", }, } } |