diff options
Diffstat (limited to 'testrig')
| -rw-r--r-- | testrig/testmodels.go | 364 |
1 files changed, 113 insertions, 251 deletions
diff --git a/testrig/testmodels.go b/testrig/testmodels.go index fcd976446..d8c91b611 100644 --- a/testrig/testmodels.go +++ b/testrig/testmodels.go @@ -1406,22 +1406,18 @@ func NewTestStatuses() map[string]*gtsmodel.Status { PinnedAt: TimeMustParse("2022-05-14T13:21:09+02:00"), URI: "http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R", URL: "http://localhost:8080/@admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R", - Content: "hello world! #welcome ! first post on the instance :rainbow: !", + Content: "<p>hello world! <a href=\"http://localhost:8080/tags/welcome\" class=\"mention hashtag\" rel=\"tag nofollow noreferrer noopener\" target=\"_blank\">#<span>welcome</span></a> ! first post on the instance :rainbow: !</p>", Text: "hello world! #welcome ! first post on the instance :rainbow: !", ContentType: gtsmodel.StatusContentTypePlain, AttachmentIDs: []string{"01F8MH6NEM8D7527KZAECTCR76"}, TagIDs: []string{"01F8MHA1A2NF9MJ3WCCQ3K8BSZ"}, - MentionIDs: []string{}, EmojiIDs: []string{"01F8MH9H8E4VG3KDYJR9EGPXCQ"}, CreatedAt: TimeMustParse("2021-10-20T11:36:45Z"), EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/admin", AccountID: "01F8MH17FWEB39HZJ76B6VXSKF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWDF2Q4HV5QC161C4TGQ0M3", - ContentWarning: "", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), Language: "en", @@ -1435,18 +1431,16 @@ func NewTestStatuses() map[string]*gtsmodel.Status { PinnedAt: TimeMustParse("2022-05-14T14:21:09+02:00"), URI: "http://localhost:8080/users/admin/statuses/01F8MHAAY43M6RJ473VQFCVH37", URL: "http://localhost:8080/@admin/statuses/01F8MHAAY43M6RJ473VQFCVH37", - Content: "🐕🐕🐕🐕🐕", + Content: "<p>🐕🐕🐕🐕🐕</p>", Text: "🐕🐕🐕🐕🐕", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-10-20T12:36:45Z"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/admin", AccountID: "01F8MH17FWEB39HZJ76B6VXSKF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWDQ1C7APSEY34B1HFVHVX7", - ContentWarning: "open to see some puppies", + ContentWarning: "open to see some <strong>puppies</strong>", + ContentWarningText: "open to see some **puppies**", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(true), Language: "en", @@ -1459,11 +1453,10 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01FF25D5Q0DH7CHD57CTRS6WK0", URI: "http://localhost:8080/users/admin/statuses/01FF25D5Q0DH7CHD57CTRS6WK0", URL: "http://localhost:8080/@admin/statuses/01FF25D5Q0DH7CHD57CTRS6WK0", - Content: "hi @the_mighty_zork welcome to the instance!", + Content: "<p>hi <span class=\"h-card\"><a href=\"http://localhost:8080/@1happyturtle\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">@<span>the_mighty_zork</span></a></span> welcome to the instance!</p>", Text: "hi @the_mighty_zork welcome to the instance!", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-11-20T13:32:16Z"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/admin", MentionIDs: []string{"01FF26A6BGEKCZFWNEHXB2ZZ6M"}, @@ -1471,7 +1464,6 @@ func NewTestStatuses() map[string]*gtsmodel.Status { InReplyToID: "01F8MHAMCHF6Y650WCRSCP4WMY", InReplyToAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", InReplyToURI: "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY", - BoostOfID: "", ThreadID: "01HCWDKKBWECZJQ93E262N36VN", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), @@ -1486,16 +1478,11 @@ func NewTestStatuses() map[string]*gtsmodel.Status { URI: "http://localhost:8080/users/admin/statuses/01G36SF3V6Y6V5BF9P4R7PQG7G", URL: "http://localhost:8080/@admin/statuses/01G36SF3V6Y6V5BF9P4R7PQG7G", CreatedAt: TimeMustParse("2021-10-20T12:41:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/admin", AccountID: "01F8MH17FWEB39HZJ76B6VXSKF", - InReplyToID: "", - InReplyToAccountID: "", - InReplyToURI: "", BoostOfID: "01F8MHAMCHF6Y650WCRSCP4WMY", BoostOfAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - ThreadID: "", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), CreatedWithApplicationID: "01F8MGXQRHYF5QPMTMXP78QC2F", @@ -1511,7 +1498,6 @@ func NewTestStatuses() map[string]*gtsmodel.Status { Text: "Hi @1happyturtle, can I reply?", ContentType: gtsmodel.StatusContentTypeMarkdown, CreatedAt: TimeMustParse("2024-02-20T12:41:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/admin", MentionIDs: []string{"01J5QVP69ANF1K4WHES6GA4WXP"}, @@ -1519,8 +1505,6 @@ func NewTestStatuses() map[string]*gtsmodel.Status { InReplyToID: "01F8MHC8VWDRBQR0N1BATDDEM5", InReplyToAccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", InReplyToURI: "http://localhost:8080/users/1happyturtle/statuses/01F8MHC8VWDRBQR0N1BATDDEM5", - BoostOfID: "", - BoostOfAccountID: "", ThreadID: "01HCWE4P0EW9HBA5WHW97D5YV0", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), @@ -1533,16 +1517,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01F8MHAMCHF6Y650WCRSCP4WMY", URI: "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY", URL: "http://localhost:8080/@the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY", - Content: "hello everyone!", + Content: "<p>hello everyone!</p>", Text: "hello everyone!", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWDKKBWECZJQ93E262N36VN", ContentWarning: "introduction post", Visibility: gtsmodel.VisibilityPublic, @@ -1557,18 +1538,14 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01F8MHAYFKS4KMXF8K5Y1C0KRN", URI: "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAYFKS4KMXF8K5Y1C0KRN", URL: "http://localhost:8080/@the_mighty_zork/statuses/01F8MHAYFKS4KMXF8K5Y1C0KRN", - Content: "this is a Public local-only post that shouldn't federate, but it's still boostable, replyable, and likeable. also it has no stored content type", - Text: "this is a Public local-only post that shouldn't federate, but it's still boostable, replyable, and likeable. also it has no stored content type", + Content: "<p>this is a Public local-only post that shouldn't federate, but it's still boostable, replyable, and likeable</p>", + Text: "this is a Public local-only post that shouldn't federate, but it's still boostable, replyable, and likeable", ContentType: 0, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWDVTW3HQWSX66VJQ91Z1RH", - ContentWarning: "", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), Language: "en", @@ -1581,16 +1558,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01F8MHBBN8120SYH7D5S050MGK", URI: "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHBBN8120SYH7D5S050MGK", URL: "http://localhost:8080/@the_mighty_zork/statuses/01F8MHBBN8120SYH7D5S050MGK", - Content: "this is a very personal post that I don't want anyone to interact with at all, and i only want mutuals to see it", + Content: "<p>this is a very personal post that I don't want anyone to interact with at all, and i only want mutuals to see it</p>", Text: "this is a very personal post that I don't want anyone to interact with at all, and i only want mutuals to see it", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWDY9PDNHDBDBBFTJKJY8XE", ContentWarning: "test: you shouldn't be able to interact with this post in any way", Visibility: gtsmodel.VisibilityMutualsOnly, @@ -1616,7 +1590,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01F8MH82FYRXD2RC6108DAJ5HB", URI: "http://localhost:8080/users/the_mighty_zork/statuses/01F8MH82FYRXD2RC6108DAJ5HB", URL: "http://localhost:8080/@the_mighty_zork/statuses/01F8MH82FYRXD2RC6108DAJ5HB", - Content: "here's a little gif of trent.... and also a cow", + Content: "<p>here's a little gif of trent.... and also a cow</p>", Text: "here's a little gif of trent.... and also a cow", ContentType: gtsmodel.StatusContentTypePlain, AttachmentIDs: []string{"01F8MH7TDVANYKWVE8VVKFPJTJ", "01CDR64G398ADCHXK08WWTHEZ5"}, @@ -1625,8 +1599,6 @@ func NewTestStatuses() map[string]*gtsmodel.Status { Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWE0H2GKH794Q7GDPANH91Q", ContentWarning: "eye contact, trent reznor gif, cow", Visibility: gtsmodel.VisibilityMutualsOnly, @@ -1641,19 +1613,15 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01FCTA44PW9H1TB328S9AQXKDS", URI: "http://localhost:8080/users/the_mighty_zork/statuses/01FCTA44PW9H1TB328S9AQXKDS", URL: "http://localhost:8080/@the_mighty_zork/statuses/01FCTA44PW9H1TB328S9AQXKDS", - Content: "hi!", + Content: "<p>hi!</p>", Text: "hi!", ContentType: gtsmodel.StatusContentTypePlain, - AttachmentIDs: []string{}, CreatedAt: TimeMustParse("2022-05-20T11:37:55Z"), EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWE1ERQSMMVWDD0BE491E2P", - ContentWarning: "", Visibility: gtsmodel.VisibilityFollowersOnly, Sensitive: util.Ptr(false), Language: "en", @@ -1666,19 +1634,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01HEN2RZ8BG29Y5Z9VJC73HZW7", URI: "http://localhost:8080/users/the_mighty_zork/statuses/065TKBPE0H2AH8S5X8JCK4XC58", URL: "http://localhost:8080/@the_mighty_zork/statuses/065TKBPE0H2AH8S5X8JCK4XC58", - Content: "what do you think of sloths?", + Content: "<p>what do you think of sloths?</p>", Text: "what do you think of sloths?", ContentType: gtsmodel.StatusContentTypePlain, - AttachmentIDs: nil, CreatedAt: TimeMustParse("2022-05-20T11:41:10Z"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - InReplyToID: "", - BoostOfID: "", - ThreadID: "", - ContentWarning: "", Visibility: gtsmodel.VisibilityFollowersOnly, Sensitive: util.Ptr(false), Language: "en", @@ -1696,12 +1658,9 @@ func NewTestStatuses() map[string]*gtsmodel.Status { Text: "Here's a bunch of HTML, read it and weep, weep then!\n\n```html\n<section class=\"about-user\">\n <div class=\"col-header\">\n <h2>About</h2>\n </div> \n <div class=\"fields\">\n <h3 class=\"sr-only\">Fields</h3>\n <dl>\n <div class=\"field\">\n <dt>should you follow me?</dt>\n <dd>maybe!</dd>\n </div>\n <div class=\"field\">\n <dt>age</dt>\n <dd>120</dd>\n </div>… <h3 class=\"sr-only\">Stats</h3>\n <span>Joined in Jun, 2022.</span>\n <span>8 posts.</span>\n <span>Followed by 1.</span>\n <span>Following 1.</span>\n </div>\n <div class=\"accountstats\" aria-hidden=\"true\">\n <b>Joined</b><time datetime=\"2022-06-04T13:12:00.000Z\">Jun, 2022</time>\n <b>Posts</b><span>8</span>\n <b>Followed by</b><span>1</span>\n <b>Following</b><span>1</span>\n </div>\n</section>\n```\n\nThere, hope you liked that!", ContentType: gtsmodel.StatusContentTypeMarkdown, CreatedAt: TimeMustParse("2023-12-10T11:24:00+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HH9M3FVSF5J7120X9T6PG4GF", ContentWarning: "HTML in post", Visibility: gtsmodel.VisibilityPublic, @@ -1721,16 +1680,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ContentType: gtsmodel.StatusContentTypeMarkdown, AttachmentIDs: []string{"01J2M20K6K9XQC4WSB961YJHV6"}, CreatedAt: TimeMustParse("2024-01-10T11:24:00+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", InReplyToID: "01FF25D5Q0DH7CHD57CTRS6WK0", InReplyToAccountID: "01F8MH17FWEB39HZJ76B6VXSKF", InReplyToURI: "http://localhost:8080/users/admin/statuses/01FF25D5Q0DH7CHD57CTRS6WK0", - BoostOfID: "", ThreadID: "01HCWDKKBWECZJQ93E262N36VN", - ContentWarning: "", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), Language: "en", @@ -1746,17 +1702,11 @@ func NewTestStatuses() map[string]*gtsmodel.Status { Text: "this is the latest revision of the status, with a content-warning", ContentType: gtsmodel.StatusContentTypeMarkdown, ContentWarning: "edited status", - AttachmentIDs: nil, CreatedAt: TimeMustParse("2024-11-01T11:00:00+02:00"), EditedAt: TimeMustParse("2024-11-01T11:02:00+02:00"), Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", - InReplyToID: "", - InReplyToAccountID: "", - InReplyToURI: "", - BoostOfID: "", - ThreadID: "", EditIDs: []string{"01JDPZCZ2Y9KSGZW0R7ZG8T8Y2", "01JDPZDADMD1T9HKF94RECF7PP"}, Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), @@ -1769,16 +1719,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01F8MHBQCBTDKN6X5VHGMMN4MA", URI: "http://localhost:8080/users/1happyturtle/statuses/01F8MHBQCBTDKN6X5VHGMMN4MA", URL: "http://localhost:8080/@1happyturtle/statuses/01F8MHBQCBTDKN6X5VHGMMN4MA", - Content: "🐢 hi everyone i post about turtles 🐢", + Content: "<p>🐢 hi everyone i post about turtles 🐢</p>", Text: "🐢 hi everyone i post about turtles 🐢", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/1happyturtle", AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWE2Q24FWCZE41AS77SDFRZ", ContentWarning: "introduction post", Visibility: gtsmodel.VisibilityPublic, @@ -1793,18 +1740,14 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01F8MHC0H0A7XHTVH5F596ZKBM", URI: "http://localhost:8080/users/1happyturtle/statuses/01F8MHC0H0A7XHTVH5F596ZKBM", URL: "http://localhost:8080/@1happyturtle/statuses/01F8MHC0H0A7XHTVH5F596ZKBM", - Content: "🐢 this one is federated, likeable, and boostable but not replyable 🐢", + Content: "<p>🐢 this one is federated, likeable, and boostable but not replyable 🐢</p>", Text: "🐢 this one is federated, likeable, and boostable but not replyable 🐢", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/1happyturtle", AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWE3P291Z3NJEJVFPW0K9ZQ", - ContentWarning: "", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(true), Language: "en", @@ -1828,16 +1771,13 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01F8MHC8VWDRBQR0N1BATDDEM5", URI: "http://localhost:8080/users/1happyturtle/statuses/01F8MHC8VWDRBQR0N1BATDDEM5", URL: "http://localhost:8080/@1happyturtle/statuses/01F8MHC8VWDRBQR0N1BATDDEM5", - Content: "🐢 i don't mind people sharing and liking this one but I want to moderate replies to it 🐢", + Content: "<p>🐢 i don't mind people sharing and liking this one but I want to moderate replies to it 🐢</p>", Text: "🐢 i don't mind people sharing and liking this one but I want to moderate replies to it 🐢", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/1happyturtle", AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWE4P0EW9HBA5WHW97D5YV0", ContentWarning: "you won't be able to reply to this without my approval", Visibility: gtsmodel.VisibilityPublic, @@ -1864,18 +1804,14 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01F8MHCP5P2NWYQ416SBA0XSEV", URI: "http://localhost:8080/users/1happyturtle/statuses/01F8MHCP5P2NWYQ416SBA0XSEV", URL: "http://localhost:8080/@1happyturtle/statuses/01F8MHCP5P2NWYQ416SBA0XSEV", - Content: "🐢 this is a public status but I want it local only and not boostable 🐢", + Content: "<p>🐢 this is a public status but I want it local only and not boostable 🐢</p>", Text: "🐢 this is a public status but I want it local only and not boostable 🐢", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/1happyturtle", AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWE5JXFPFP3P5W2QNHVVV27", - ContentWarning: "", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(true), Language: "en", @@ -1899,11 +1835,10 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01FCQSQ667XHJ9AV9T27SJJSX5", URI: "http://localhost:8080/users/1happyturtle/statuses/01FCQSQ667XHJ9AV9T27SJJSX5", URL: "http://localhost:8080/@1happyturtle/statuses/01FCQSQ667XHJ9AV9T27SJJSX5", - Content: "🐢 @the_mighty_zork hi zork! 🐢", + Content: "<p>🐢 <span class=\"h-card\"><a href=\"http://localhost:8080/@1happyturtle\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">@<span>the_mighty_zork</span></a></span> hi zork! 🐢</p>", Text: "🐢 @the_mighty_zork hi zork! 🐢", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/1happyturtle", MentionIDs: []string{"01FDF2HM2NF6FSRZCDEDV451CN"}, @@ -1911,9 +1846,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status { InReplyToID: "01F8MHAMCHF6Y650WCRSCP4WMY", InReplyToAccountID: "01F8MH1H7YV1Z7D2C8K2730QBF", InReplyToURI: "http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY", - BoostOfID: "", ThreadID: "01HCWDKKBWECZJQ93E262N36VN", - ContentWarning: "", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), Language: "en", @@ -1926,21 +1859,15 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01FN3VJGFH10KR7S2PB0GFJZYG", URI: "http://localhost:8080/users/1happyturtle/statuses/01FN3VJGFH10KR7S2PB0GFJZYG", URL: "http://localhost:8080/@1happyturtle/statuses/01FN3VJGFH10KR7S2PB0GFJZYG", - Content: "🐢 @the_mighty_zork hi zork, this is a direct message, shhhhhh! 🐢", + Content: "<p>🐢 <span class=\"h-card\"><a href=\"http://localhost:8080/@1happyturtle\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">@<span>the_mighty_zork</span></a></span> hi zork, this is a direct message, shhhhhh! 🐢</p>", Text: "🐢 @the_mighty_zork hi zork, this is a direct message, shhhhhh! 🐢", ContentType: gtsmodel.StatusContentTypePlain, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), - EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/1happyturtle", MentionIDs: []string{"01FDF2HM2NF6FSRZCDEDV451CN"}, AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", - InReplyToID: "", - InReplyToAccountID: "", - InReplyToURI: "", - BoostOfID: "", ThreadID: "01HCWE71MGRRDSHBKXFD5DDSWR", - ContentWarning: "", Visibility: gtsmodel.VisibilityDirect, Sensitive: util.Ptr(false), Language: "en", @@ -1954,19 +1881,15 @@ func NewTestStatuses() map[string]*gtsmodel.Status { PinnedAt: TimeMustParse("2021-03-18T09:13:55+02:00"), URI: "http://localhost:8080/users/1happyturtle/statuses/01G20ZM733MGN8J344T4ZDDFY1", URL: "http://localhost:8080/@1happyturtle/statuses/01G20ZM733MGN8J344T4ZDDFY1", - Content: "🐢 hi followers! did u know i'm a turtle? 🐢", + Content: "<p>🐢 hi followers! did u know i'm a turtle? 🐢</p>", Text: "🐢 hi followers! did u know i'm a turtle? 🐢", ContentType: gtsmodel.StatusContentTypePlain, - AttachmentIDs: []string{}, CreatedAt: TimeMustParse("2021-10-20T12:40:37+02:00"), EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/1happyturtle", AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", - InReplyToID: "", - BoostOfID: "", ThreadID: "01HCWE7ZNC2SS4P05WA5QYED23", - ContentWarning: "", Visibility: gtsmodel.VisibilityFollowersOnly, Sensitive: util.Ptr(false), Language: "en", @@ -1979,19 +1902,14 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ID: "01HEN2PRXT0TF4YDRA64FZZRN7", URI: "http://localhost:8080/users/1happyturtle/statuses/01HEN2PRXT0TF4YDRA64FZZRN7", URL: "http://localhost:8080/@1happyturtle/statuses/01HEN2PRXT0TF4YDRA64FZZRN7", - Content: "hey everyone i got stuck in a shed. any ideas for how to get out?", + Content: "<p>hey everyone i got stuck in a shed. any ideas for how to get out?</p>", Text: "hey everyone i got stuck in a shed. any ideas for how to get out?", ContentType: gtsmodel.StatusContentTypePlain, - AttachmentIDs: nil, CreatedAt: TimeMustParse("2021-07-28T10:40:37+02:00"), EditedAt: time.Time{}, Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/1happyturtle", AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", - InReplyToID: "", - BoostOfID: "", - ThreadID: "", - ContentWarning: "", Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), Language: "en", @@ -2015,11 +1933,6 @@ func NewTestStatuses() map[string]*gtsmodel.Status { Local: util.Ptr(true), AccountURI: "http://localhost:8080/users/the_mighty_zork", AccountID: "01F8MH5NBDF2MV7CTC4Q5128HF", - InReplyToID: "", - InReplyToAccountID: "", - InReplyToURI: "", - BoostOfID: "", - ThreadID: "", EditIDs: []string{"01JDPZPBXAX0M02YSEPB21KX4R", "01JDPZPJHKP7E3M0YQXEXPS1YT", "01JDPZPY3F85Y7B78ETRXEMWD9"}, Visibility: gtsmodel.VisibilityPublic, Sensitive: util.Ptr(false), @@ -2029,79 +1942,57 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ActivityStreamsType: ap.ObjectNote, }, "remote_account_1_status_1": { - ID: "01FVW7JHQFSFK166WWKR8CBA6M", - URI: "http://fossbros-anonymous.io/users/foss_satan/statuses/01FVW7JHQFSFK166WWKR8CBA6M", - URL: "http://fossbros-anonymous.io/@foss_satan/statuses/01FVW7JHQFSFK166WWKR8CBA6M", - Content: "dark souls status bot: \"thoughts of dog\"", - AttachmentIDs: []string{"01FVW7RXPQ8YJHTEXYPE7Q8ZY0"}, - CreatedAt: TimeMustParse("2021-09-20T12:40:37+02:00"), - EditedAt: time.Time{}, - Local: util.Ptr(false), - AccountURI: "http://fossbros-anonymous.io/users/foss_satan", - MentionIDs: []string{}, - AccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX", - InReplyToID: "", - InReplyToAccountID: "", - InReplyToURI: "", - BoostOfID: "", - ContentWarning: "", - Visibility: gtsmodel.VisibilityUnlocked, - Sensitive: util.Ptr(false), - Language: "en", - CreatedWithApplicationID: "", - Federated: util.Ptr(true), - ActivityStreamsType: ap.ObjectNote, - PendingApproval: util.Ptr(false), + ID: "01FVW7JHQFSFK166WWKR8CBA6M", + URI: "http://fossbros-anonymous.io/users/foss_satan/statuses/01FVW7JHQFSFK166WWKR8CBA6M", + URL: "http://fossbros-anonymous.io/@foss_satan/statuses/01FVW7JHQFSFK166WWKR8CBA6M", + Content: "<p>dark souls status bot: \"thoughts of dog\"</p>", + AttachmentIDs: []string{"01FVW7RXPQ8YJHTEXYPE7Q8ZY0"}, + CreatedAt: TimeMustParse("2021-09-20T12:40:37+02:00"), + Local: util.Ptr(false), + AccountURI: "http://fossbros-anonymous.io/users/foss_satan", + AccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX", + Visibility: gtsmodel.VisibilityUnlocked, + Sensitive: util.Ptr(false), + Language: "en", + Federated: util.Ptr(true), + ActivityStreamsType: ap.ObjectNote, + PendingApproval: util.Ptr(false), }, "remote_account_1_status_2": { - ID: "01HEN2QRFA8H3C6QPN7RD4KSR6", - URI: "http://fossbros-anonymous.io/users/foss_satan/statuses/01HEN2QRFA8H3C6QPN7RD4KSR6", - URL: "http://fossbros-anonymous.io/@foss_satan/statuses/01HEN2QRFA8H3C6QPN7RD4KSR6", - Content: "what products should i buy at the grocery store?", - AttachmentIDs: []string{"01FVW7RXPQ8YJHTEXYPE7Q8ZY0"}, - CreatedAt: TimeMustParse("2021-09-11T11:40:37+02:00"), - EditedAt: time.Time{}, - Local: util.Ptr(false), - AccountURI: "http://fossbros-anonymous.io/users/foss_satan", - AccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX", - InReplyToID: "", - InReplyToAccountID: "", - InReplyToURI: "", - BoostOfID: "", - ContentWarning: "", - Visibility: gtsmodel.VisibilityUnlocked, - Sensitive: util.Ptr(false), - Language: "en", - CreatedWithApplicationID: "", - Federated: util.Ptr(true), - ActivityStreamsType: ap.ActivityQuestion, - PollID: "01HEN2R65468ZG657C4ZPHJ4EX", - PendingApproval: util.Ptr(false), + ID: "01HEN2QRFA8H3C6QPN7RD4KSR6", + URI: "http://fossbros-anonymous.io/users/foss_satan/statuses/01HEN2QRFA8H3C6QPN7RD4KSR6", + URL: "http://fossbros-anonymous.io/@foss_satan/statuses/01HEN2QRFA8H3C6QPN7RD4KSR6", + Content: "<p>what products should i buy at the grocery store?</p>", + AttachmentIDs: []string{"01FVW7RXPQ8YJHTEXYPE7Q8ZY0"}, + CreatedAt: TimeMustParse("2021-09-11T11:40:37+02:00"), + Local: util.Ptr(false), + AccountURI: "http://fossbros-anonymous.io/users/foss_satan", + AccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX", + Visibility: gtsmodel.VisibilityUnlocked, + Sensitive: util.Ptr(false), + Language: "en", + Federated: util.Ptr(true), + ActivityStreamsType: ap.ActivityQuestion, + PollID: "01HEN2R65468ZG657C4ZPHJ4EX", + PendingApproval: util.Ptr(false), }, "remote_account_1_status_3": { - ID: "01HEWV37MHV8BAC8ANFGVRRM5D", - URI: "http://fossbros-anonymous.io/users/foss_satan/statuses/01HEWV37MHV8BAC8ANFGVRRM5D", - URL: "http://fossbros-anonymous.io/@foss_satan/statuses/01HEWV37MHV8BAC8ANFGVRRM5D", - Content: "what products should i buy at the grocery store? (now an endless poll!)", - AttachmentIDs: []string{"01FVW7RXPQ8YJHTEXYPE7Q8ZY0"}, - CreatedAt: TimeMustParse("2021-09-11T11:40:37+02:00"), - EditedAt: time.Time{}, - Local: util.Ptr(false), - AccountURI: "http://fossbros-anonymous.io/users/foss_satan", - AccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX", - InReplyToID: "", - InReplyToAccountID: "", - InReplyToURI: "", - BoostOfID: "", - ContentWarning: "", - Visibility: gtsmodel.VisibilityUnlocked, - Sensitive: util.Ptr(false), - Language: "en", - CreatedWithApplicationID: "", - Federated: util.Ptr(true), - ActivityStreamsType: ap.ActivityQuestion, - PollID: "01HEWV1GW2D49R919NPEDXPTZ5", - PendingApproval: util.Ptr(false), + ID: "01HEWV37MHV8BAC8ANFGVRRM5D", + URI: "http://fossbros-anonymous.io/users/foss_satan/statuses/01HEWV37MHV8BAC8ANFGVRRM5D", + URL: "http://fossbros-anonymous.io/@foss_satan/statuses/01HEWV37MHV8BAC8ANFGVRRM5D", + Content: "<p>what products should i buy at the grocery store? (now an endless poll!)</p>", + AttachmentIDs: []string{"01FVW7RXPQ8YJHTEXYPE7Q8ZY0"}, + CreatedAt: TimeMustParse("2021-09-11T11:40:37+02:00"), + Local: util.Ptr(false), + AccountURI: "http://fossbros-anonymous.io/users/foss_satan", + AccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX", + Visibility: gtsmodel.VisibilityUnlocked, + Sensitive: util.Ptr(false), + Language: "en", + Federated: util.Ptr(true), + ActivityStreamsType: ap.ActivityQuestion, + PollID: "01HEWV1GW2D49R919NPEDXPTZ5", + PendingApproval: util.Ptr(false), }, "remote_account_1_status_4": { ID: "01JDQ07JZTX9CMDJP67CNA71YD", @@ -2110,18 +2001,11 @@ func NewTestStatuses() map[string]*gtsmodel.Status { Content: "<p>this is the latest status edit without poll change</p>", Text: "this is the latest status edit without poll change", ContentType: gtsmodel.StatusContentTypeMarkdown, - ContentWarning: "", - AttachmentIDs: nil, CreatedAt: TimeMustParse("2024-11-01T09:00:00+02:00"), EditedAt: TimeMustParse("2024-11-01T09:02:00+02:00"), Local: util.Ptr(false), AccountURI: "http://fossbros-anonymous.io/users/foss_satan", AccountID: "01F8MH5ZK5VRH73AKHQM6Y9VNX", - InReplyToID: "", - InReplyToAccountID: "", - InReplyToURI: "", - BoostOfID: "", - ThreadID: "", EditIDs: []string{"01JDQ07ZZ4FGP13YN8TF63P5A6", "01JDQ08AYQC0G6413VAHA51CV9"}, PollID: "01JDQ0EZ5HM9T4WXRQ5WSVD40J", Visibility: gtsmodel.VisibilityPublic, @@ -2132,29 +2016,26 @@ func NewTestStatuses() map[string]*gtsmodel.Status { ActivityStreamsType: ap.ObjectNote, }, "remote_account_2_status_1": { - ID: "01HE7XJ1CG84TBKH5V9XKBVGF5", - URI: "http://example.org/users/Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5", - URL: "http://example.org/@Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5", - Content: `<p>hi <span class="h-card"><a href="http://localhost:8080/@admin" class="u-url mention" rel="nofollow noreferrer noopener" target="_blank">@<span>admin</span></a></span> here's some media for ya</p>`, - AttachmentIDs: []string{"01HE7Y3C432WRSNS10EZM86SA5", "01HE7ZFX9GKA5ZZVD4FACABSS9", "01HE88YG74PVAB81PX2XA9F3FG"}, - CreatedAt: TimeMustParse("2023-11-02T12:44:25+02:00"), - EditedAt: time.Time{}, - Local: util.Ptr(false), - AccountURI: "http://example.org/users/Some_User", - MentionIDs: []string{"01HE7XQNMKTVC8MNPCE1JGK4J3"}, - AccountID: "01FHMQX3GAABWSM0S2VZEC2SWC", - InReplyToID: "01F8MH75CBF9JFX4ZAD54N0W0R", - InReplyToAccountID: "01F8MH17FWEB39HZJ76B6VXSKF", - InReplyToURI: "http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R", - BoostOfID: "", - ContentWarning: "some unknown media included", - Visibility: gtsmodel.VisibilityPublic, - Sensitive: util.Ptr(true), - Language: "en", - CreatedWithApplicationID: "", - Federated: util.Ptr(true), - ActivityStreamsType: ap.ObjectNote, - PendingApproval: util.Ptr(false), + ID: "01HE7XJ1CG84TBKH5V9XKBVGF5", + URI: "http://example.org/users/Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5", + URL: "http://example.org/@Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5", + Content: `<p>hi <span class="h-card"><a href="http://localhost:8080/@admin" class="u-url mention" rel="nofollow noreferrer noopener" target="_blank">@<span>admin</span></a></span> here's some media for ya</p>`, + AttachmentIDs: []string{"01HE7Y3C432WRSNS10EZM86SA5", "01HE7ZFX9GKA5ZZVD4FACABSS9", "01HE88YG74PVAB81PX2XA9F3FG"}, + CreatedAt: TimeMustParse("2023-11-02T12:44:25+02:00"), + Local: util.Ptr(false), + AccountURI: "http://example.org/users/Some_User", + MentionIDs: []string{"01HE7XQNMKTVC8MNPCE1JGK4J3"}, + AccountID: "01FHMQX3GAABWSM0S2VZEC2SWC", + InReplyToID: "01F8MH75CBF9JFX4ZAD54N0W0R", + InReplyToAccountID: "01F8MH17FWEB39HZJ76B6VXSKF", + InReplyToURI: "http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R", + ContentWarning: "some unknown media included", + Visibility: gtsmodel.VisibilityPublic, + Sensitive: util.Ptr(true), + Language: "en", + Federated: util.Ptr(true), + ActivityStreamsType: ap.ObjectNote, + PendingApproval: util.Ptr(false), }, } } @@ -3636,18 +3517,14 @@ func NewTestInteractionRequests() map[string]*gtsmodel.InteractionRequest { func NewTestStatusEdits() map[string]*gtsmodel.StatusEdit { return map[string]*gtsmodel.StatusEdit{ "local_account_1_status_9_edit_1": { - ID: "01JDPZCZ2Y9KSGZW0R7ZG8T8Y2", - Content: "<p>this is the original status</p>", - ContentWarning: "", - Text: "this is the original status", - ContentType: gtsmodel.StatusContentTypeMarkdown, - Language: "en", - Sensitive: util.Ptr(false), - AttachmentIDs: nil, - PollOptions: nil, - PollVotes: nil, - StatusID: "01JDPZC707CKDN8N4QVWM4Z1NR", - CreatedAt: TimeMustParse("2024-11-01T11:00:00+02:00"), + ID: "01JDPZCZ2Y9KSGZW0R7ZG8T8Y2", + Content: "<p>this is the original status</p>", + Text: "this is the original status", + ContentType: gtsmodel.StatusContentTypeMarkdown, + Language: "en", + Sensitive: util.Ptr(false), + StatusID: "01JDPZC707CKDN8N4QVWM4Z1NR", + CreatedAt: TimeMustParse("2024-11-01T11:00:00+02:00"), }, "local_account_1_status_9_edit_2": { ID: "01JDPZDADMD1T9HKF94RECF7PP", @@ -3657,25 +3534,18 @@ func NewTestStatusEdits() map[string]*gtsmodel.StatusEdit { ContentType: gtsmodel.StatusContentTypeMarkdown, Language: "en", Sensitive: util.Ptr(false), - AttachmentIDs: nil, - PollOptions: nil, - PollVotes: nil, StatusID: "01JDPZC707CKDN8N4QVWM4Z1NR", CreatedAt: TimeMustParse("2024-11-01T11:01:00+02:00"), }, "local_account_2_status_9_edit_1": { - ID: "01JDPZPBXAX0M02YSEPB21KX4R", - Content: "<p>this is the original status</p>", - ContentWarning: "", - Text: "this is the original status", - ContentType: gtsmodel.StatusContentTypeMarkdown, - Language: "en", - Sensitive: util.Ptr(false), - AttachmentIDs: nil, - PollOptions: nil, - PollVotes: nil, - StatusID: "01JDPZEZ77X1NX0TY9M10BK1HM", - CreatedAt: TimeMustParse("2024-11-01T10:00:00+02:00"), + ID: "01JDPZPBXAX0M02YSEPB21KX4R", + Content: "<p>this is the original status</p>", + Text: "this is the original status", + ContentType: gtsmodel.StatusContentTypeMarkdown, + Language: "en", + Sensitive: util.Ptr(false), + StatusID: "01JDPZEZ77X1NX0TY9M10BK1HM", + CreatedAt: TimeMustParse("2024-11-01T10:00:00+02:00"), }, "local_account_2_status_9_edit_2": { ID: "01JDPZPJHKP7E3M0YQXEXPS1YT", @@ -3686,8 +3556,6 @@ func NewTestStatusEdits() map[string]*gtsmodel.StatusEdit { Language: "en", Sensitive: util.Ptr(true), AttachmentIDs: []string{"01JDQ164HM08SGJ7ZEK9003Z4B"}, - PollOptions: nil, - PollVotes: nil, StatusID: "01JDPZEZ77X1NX0TY9M10BK1HM", CreatedAt: TimeMustParse("2024-11-01T10:01:00+02:00"), }, @@ -3699,25 +3567,20 @@ func NewTestStatusEdits() map[string]*gtsmodel.StatusEdit { ContentType: gtsmodel.StatusContentTypeMarkdown, Language: "en", Sensitive: util.Ptr(false), - AttachmentIDs: nil, - PollOptions: nil, - PollVotes: nil, StatusID: "01JDPZEZ77X1NX0TY9M10BK1HM", CreatedAt: TimeMustParse("2024-11-01T10:02:00+02:00"), }, "remote_account_1_status_4_edit_1": { - ID: "01JDQ07ZZ4FGP13YN8TF63P5A6", - Content: "<p>this is the original status, with a poll!</p>", - ContentWarning: "", - Text: "this is the original status, with a poll!", - ContentType: gtsmodel.StatusContentTypeMarkdown, - Language: "en", - Sensitive: util.Ptr(false), - AttachmentIDs: nil, - PollOptions: []string{"yes", "no", "spiderman"}, - PollVotes: []int{42, 42, 69}, - StatusID: "01JDQ07JZTX9CMDJP67CNA71YD", - CreatedAt: TimeMustParse("2024-11-01T09:00:00+02:00"), + ID: "01JDQ07ZZ4FGP13YN8TF63P5A6", + Content: "<p>this is the original status, with a poll!</p>", + Text: "this is the original status, with a poll!", + ContentType: gtsmodel.StatusContentTypeMarkdown, + Language: "en", + Sensitive: util.Ptr(false), + PollOptions: []string{"yes", "no", "spiderman"}, + PollVotes: []int{42, 42, 69}, + StatusID: "01JDQ07JZTX9CMDJP67CNA71YD", + CreatedAt: TimeMustParse("2024-11-01T09:00:00+02:00"), }, "remote_account_1_status_4_edit_2": { ID: "01JDQ08AYQC0G6413VAHA51CV9", @@ -3727,7 +3590,6 @@ func NewTestStatusEdits() map[string]*gtsmodel.StatusEdit { ContentType: gtsmodel.StatusContentTypeMarkdown, Language: "en", Sensitive: util.Ptr(false), - AttachmentIDs: nil, PollOptions: []string{"yes", "no", "maybe", "i don't know", "can you repeat the question"}, PollVotes: []int{0, 0, 0, 0, 1}, StatusID: "01JDQ07JZTX9CMDJP67CNA71YD", |
