diff options
Diffstat (limited to 'internal/api')
-rw-r--r-- | internal/api/client/statuses/statuscreate_test.go | 2 | ||||
-rw-r--r-- | internal/api/model/status.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/statuses/statuscreate_test.go b/internal/api/client/statuses/statuscreate_test.go index e945d9caf..d936cb656 100644 --- a/internal/api/client/statuses/statuscreate_test.go +++ b/internal/api/client/statuses/statuscreate_test.go @@ -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) diff --git a/internal/api/model/status.go b/internal/api/model/status.go index 5c54bfe96..128cd65bb 100644 --- a/internal/api/model/status.go +++ b/internal/api/model/status.go @@ -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. |