From b46e5fb65d10be79f553505dc25e575de97f142f Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 22 Nov 2021 12:48:46 +0100 Subject: 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 --- testrig/testmodels.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testrig/testmodels.go') 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"}, -- cgit v1.2.3