summaryrefslogtreecommitdiff
path: root/internal/api/client/statuses/statusboost_test.go
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-07-23 12:51:57 -0700
committerLibravatar GitHub <noreply@github.com>2024-07-23 20:51:57 +0100
commit86a59db711fa893362cfccdee3cd4a08e16ccdb5 (patch)
treeedb20305ed755d70ebb0eb198057416eb18f8d78 /internal/api/client/statuses/statusboost_test.go
parentExplicitly propagate filter results from statuses to their boosts in API resp... (diff)
downloadgotosocial-86a59db711fa893362cfccdee3cd4a08e16ccdb5.tar.xz
Remove content and related fields from boosts (#3131)
These duplicate the content of the target and aren't necessary for anything. - Stops copying some fields from target when boosting or processing a remote boost - Adds a migration to null out existing duplicate data - Updates tests
Diffstat (limited to 'internal/api/client/statuses/statusboost_test.go')
-rw-r--r--internal/api/client/statuses/statusboost_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/api/client/statuses/statusboost_test.go b/internal/api/client/statuses/statusboost_test.go
index 3e6a5853d..25aa2ea0f 100644
--- a/internal/api/client/statuses/statusboost_test.go
+++ b/internal/api/client/statuses/statusboost_test.go
@@ -80,8 +80,8 @@ func (suite *StatusBoostTestSuite) TestPostBoost() {
suite.False(statusReply.Sensitive)
suite.Equal(apimodel.VisibilityPublic, statusReply.Visibility)
- suite.Equal(targetStatus.ContentWarning, statusReply.SpoilerText)
- suite.Equal(targetStatus.Content, statusReply.Content)
+ suite.Empty(statusReply.SpoilerText)
+ suite.Empty(statusReply.Content)
suite.Equal("the_mighty_zork", statusReply.Account.Username)
suite.Len(statusReply.MediaAttachments, 0)
suite.Len(statusReply.Mentions, 0)
@@ -146,8 +146,8 @@ func (suite *StatusBoostTestSuite) TestPostBoostOwnFollowersOnly() {
suite.False(responseStatus.Sensitive)
suite.Equal(suite.tc.VisToAPIVis(context.Background(), testStatus.Visibility), responseStatus.Visibility)
- suite.Equal(testStatus.ContentWarning, responseStatus.SpoilerText)
- suite.Equal(testStatus.Content, responseStatus.Content)
+ suite.Empty(responseStatus.SpoilerText)
+ suite.Empty(responseStatus.Content)
suite.Equal("the_mighty_zork", responseStatus.Account.Username)
suite.Len(responseStatus.MediaAttachments, 0)
suite.Len(responseStatus.Mentions, 0)