summaryrefslogtreecommitdiff
path: root/testrig/testmodels.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-08-08 12:26:34 +0100
committerLibravatar GitHub <noreply@github.com>2023-08-08 12:26:34 +0100
commit3920bc87d1398893feda21f32e4f59129b2cc9cd (patch)
treeed5a6651e034fd551f03dcfcf42b9c61a796e001 /testrig/testmodels.go
parent[chore] Update robots.txt, give chatgpt the middle finger (#2085) (diff)
downloadgotosocial-3920bc87d1398893feda21f32e4f59129b2cc9cd.tar.xz
[bugfix] don't accept unrelated statuses (#2078)
Co-authored-by: Daenney <daenney@users.noreply.github.com> Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'testrig/testmodels.go')
-rw-r--r--testrig/testmodels.go7
1 files changed, 5 insertions, 2 deletions
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,
)