mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 01:46:16 -06:00
Set ContentType in more places where Text is set
This commit is contained in:
parent
0969007c61
commit
9a60a9f1c2
4 changed files with 33 additions and 0 deletions
1
internal/cache/size.go
vendored
1
internal/cache/size.go
vendored
|
|
@ -695,6 +695,7 @@ func sizeofStatusEdit() uintptr {
|
|||
Content: exampleText,
|
||||
ContentWarning: exampleUsername, // similar length
|
||||
Text: exampleText,
|
||||
ContentType: gtsmodel.StatusContentTypePlain,
|
||||
Language: "en",
|
||||
Sensitive: func() *bool { ok := false; return &ok }(),
|
||||
AttachmentIDs: []string{exampleID, exampleID, exampleID},
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ func getFutureStatus() *gtsmodel.Status {
|
|||
URL: "http://localhost:8080/@admin/statuses/" + id,
|
||||
Content: "it's the future, wooooooooooooooooooooooooooooooooo",
|
||||
Text: "it's the future, wooooooooooooooooooooooooooooooooo",
|
||||
ContentType: gtsmodel.StatusContentTypePlain,
|
||||
AttachmentIDs: []string{},
|
||||
TagIDs: []string{},
|
||||
MentionIDs: []string{},
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ func (suite *StatusEditTestSuite) TestSimpleEdit() {
|
|||
previousEdit := latestStatus.Edits[len(latestStatus.Edits)-1]
|
||||
suite.Equal(status.Content, previousEdit.Content)
|
||||
suite.Equal(status.Text, previousEdit.Text)
|
||||
suite.Equal(status.ContentType, previousEdit.ContentType)
|
||||
suite.Equal(status.ContentWarning, previousEdit.ContentWarning)
|
||||
suite.Equal(*status.Sensitive, *previousEdit.Sensitive)
|
||||
suite.Equal(status.Language, previousEdit.Language)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue