mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Fix web media not showing as sensitive (#2433)
* [bugfix] Fix web media not showing as sensitive * test * go fmt
This commit is contained in:
@@ -385,7 +385,7 @@ func (suite *StatusCreateTestSuite) TestAttachNewMediaSuccess() {
|
||||
suite.NoError(err)
|
||||
|
||||
// compare it with what we have now
|
||||
suite.EqualValues(statusResponse.MediaAttachments[0], gtsAttachmentAsapi)
|
||||
suite.EqualValues(*statusResponse.MediaAttachments[0], gtsAttachmentAsapi)
|
||||
|
||||
// the status id of the attachment should now be set to the id of the status we just created
|
||||
suite.Equal(statusResponse.ID, gtsAttachment.StatusID)
|
||||
|
@@ -83,7 +83,7 @@ type Status struct {
|
||||
// The account that authored this status.
|
||||
Account *Account `json:"account"`
|
||||
// Media that is attached to this status.
|
||||
MediaAttachments []Attachment `json:"media_attachments"`
|
||||
MediaAttachments []*Attachment `json:"media_attachments"`
|
||||
// Mentions of users within the status content.
|
||||
Mentions []Mention `json:"mentions"`
|
||||
// Hashtags used within the status content.
|
||||
|
Reference in New Issue
Block a user