From 86a59db711fa893362cfccdee3cd4a08e16ccdb5 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Tue, 23 Jul 2024 12:51:57 -0700 Subject: 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 --- internal/api/client/statuses/statusboost_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/api/client/statuses/statusboost_test.go') 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) -- cgit v1.2.3