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
This commit is contained in:
tobi
2021-11-22 12:48:46 +01:00
committed by GitHub
parent 24f9e11221
commit b46e5fb65d
3 changed files with 29 additions and 10 deletions

View File

@ -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"},