From 3920bc87d1398893feda21f32e4f59129b2cc9cd Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 8 Aug 2023 12:26:34 +0100 Subject: [bugfix] don't accept unrelated statuses (#2078) Co-authored-by: Daenney Co-authored-by: tsmethurst --- testrig/testmodels.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'testrig/testmodels.go') diff --git a/testrig/testmodels.go b/testrig/testmodels.go index fd26b514e..f5f63f6fa 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -2055,13 +2055,16 @@ func NewTestActivities(accounts map[string]*gtsmodel.Account) map[string]Activit URLMustParse("http://fossbros-anonymous.io/users/foss_satan/statuses/5424b153-4553-4f30-9358-7b92f7cd42f6"), URLMustParse("http://fossbros-anonymous.io/@foss_satan/5424b153-4553-4f30-9358-7b92f7cd42f6"), TimeMustParse("2022-07-13T12:13:12+02:00"), - "hey zork here's a new private note for you", + "@the_mighty_zork@localhost:8080 hey zork here's a new private note for you", "new note for zork", URLMustParse("http://fossbros-anonymous.io/users/foss_satan"), []*url.URL{URLMustParse("http://localhost:8080/users/the_mighty_zork")}, nil, true, - []vocab.ActivityStreamsMention{}, + []vocab.ActivityStreamsMention{newAPMention( + URLMustParse("http://localhost:8080/users/the_mighty_zork"), + "@the_mighty_zork@localhost:8080", + )}, []vocab.TootHashtag{}, nil, ) -- cgit v1.2.3