[bugfix] Fix minor API issue w/ boosted statuses (#2846)

This commit is contained in:
tobi
2024-04-17 12:41:40 +02:00
committed by GitHub
parent 6de5717d7f
commit 8cf685fbe9
3 changed files with 34 additions and 15 deletions

View File

@ -100,6 +100,8 @@ func (suite *StatusBoostTestSuite) TestPostBoost() {
suite.Len(statusReply.Reblog.MediaAttachments, 1)
suite.Len(statusReply.Reblog.Tags, 1)
suite.Len(statusReply.Reblog.Emojis, 1)
suite.True(statusReply.Reblogged)
suite.True(statusReply.Reblog.Reblogged)
suite.Equal("superseriousbusiness", statusReply.Reblog.Application.Name)
}
@ -165,6 +167,8 @@ func (suite *StatusBoostTestSuite) TestPostBoostOwnFollowersOnly() {
suite.Empty(responseStatus.Reblog.MediaAttachments)
suite.Empty(responseStatus.Reblog.Tags)
suite.Empty(responseStatus.Reblog.Emojis)
suite.True(responseStatus.Reblogged)
suite.True(responseStatus.Reblog.Reblogged)
suite.Equal("really cool gts application", responseStatus.Reblog.Application.Name)
}