[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:
tobi 2023-12-09 16:54:38 +01:00 committed by GitHub
commit cc91ea057d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 145 additions and 12 deletions

View file

@ -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)