[bugfix] Fix Toot CLI media attachments not working properly (#726)

This commit is contained in:
tobi
2022-07-22 13:43:51 +02:00
committed by GitHub
parent 7b72ba4ab2
commit 7ca5bac7c6
3 changed files with 17 additions and 2 deletions

View File

@ -313,7 +313,7 @@ func (suite *StatusCreateTestSuite) TestAttachNewMediaSuccess() {
ctx.Request.Header.Set("accept", "application/json")
ctx.Request.Form = url.Values{
"status": {"here's an image attachment"},
"media_ids": {attachment.ID},
"media_ids[]": {attachment.ID},
}
suite.statusModule.StatusCreatePOSTHandler(ctx)