mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 05:06:16 -06:00
Add test for handling of statuses with no stored content type
This commit is contained in:
parent
921ba6481b
commit
e02eb78cec
2 changed files with 91 additions and 0 deletions
|
|
@ -1765,6 +1765,32 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
|
|||
Federated: util.Ptr(true),
|
||||
ActivityStreamsType: ap.ObjectNote,
|
||||
},
|
||||
"local_account_1_status_10": {
|
||||
ID: "01JNKTFJCF6494E5MRR8GN47NA",
|
||||
URI: "http://localhost:8080/users/the_mighty_zork/statuses/01JNKTFJCF6494E5MRR8GN47NA",
|
||||
URL: "http://localhost:8080/@the_mighty_zork/statuses/01JNKTFJCF6494E5MRR8GN47NA",
|
||||
Content: "<p>I am an old post with no content type stored</p>",
|
||||
Text: "I am an old post with no content type stored",
|
||||
ContentType: 0,
|
||||
ContentWarning: "edited status",
|
||||
AttachmentIDs: nil,
|
||||
CreatedAt: TimeMustParse("2025-03-05T13:53:24.239-05:00"),
|
||||
EditedAt: TimeMustParse("2025-03-05T13:53:24.239-05:00"),
|
||||
Local: util.Ptr(true),
|
||||
AccountURI: "http://localhost:8080/users/the_mighty_zork",
|
||||
AccountID: "01F8MH1H7YV1Z7D2C8K2730QBF",
|
||||
InReplyToID: "",
|
||||
InReplyToAccountID: "",
|
||||
InReplyToURI: "",
|
||||
BoostOfID: "",
|
||||
ThreadID: "",
|
||||
Visibility: gtsmodel.VisibilityPublic,
|
||||
Sensitive: util.Ptr(false),
|
||||
Language: "en",
|
||||
CreatedWithApplicationID: "01F8MGY43H3N2C8EWPR2FPYEXG",
|
||||
Federated: util.Ptr(true),
|
||||
ActivityStreamsType: ap.ObjectNote,
|
||||
},
|
||||
"local_account_2_status_1": {
|
||||
ID: "01F8MHBQCBTDKN6X5VHGMMN4MA",
|
||||
URI: "http://localhost:8080/users/1happyturtle/statuses/01F8MHBQCBTDKN6X5VHGMMN4MA",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue