diff options
author | 2021-11-22 12:48:46 +0100 | |
---|---|---|
committer | 2021-11-22 12:48:46 +0100 | |
commit | b46e5fb65d10be79f553505dc25e575de97f142f (patch) | |
tree | b1c3c04c34a9400d3813f7d6889f91f6aa765dc9 /testrig/testmodels.go | |
parent | Fix image description unnecessarily html-escaping innocent characters (#321) (diff) | |
download | gotosocial-b46e5fb65d10be79f553505dc25e575de97f142f.tar.xz |
Fix incorrect target being used in CC prop for mentioning statuses (#322)
* hardcode time on admin_account_status_3
* add test for as status with mention
* fix incorrect target URI being used for mentions
Diffstat (limited to 'testrig/testmodels.go')
-rw-r--r-- | testrig/testmodels.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go index f40dd4b30..fc0047f20 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -910,8 +910,8 @@ func NewTestStatuses() map[string]*gtsmodel.Status { URI: "http://localhost:8080/users/admin/statuses/01FF25D5Q0DH7CHD57CTRS6WK0", URL: "http://localhost:8080/@admin/statuses/01FF25D5Q0DH7CHD57CTRS6WK0", Content: "hi @the_mighty_zork welcome to the instance!", - CreatedAt: time.Now().Add(-46 * time.Hour), - UpdatedAt: time.Now().Add(-46 * time.Hour), + CreatedAt: TimeMustParse("2021-11-20T13:32:16Z"), + UpdatedAt: TimeMustParse("2021-11-20T13:32:16Z"), Local: true, AccountURI: "http://localhost:8080/users/admin", MentionIDs: []string{"01FF26A6BGEKCZFWNEHXB2ZZ6M"}, |