From 5bc567196bf2204272950c525e8592e56057c3bd Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 11 Jul 2024 16:44:29 +0200 Subject: [chore] Add interaction policy gtsmodels (#3075) * [chore] introduce interaction policy gts models * update migration a smidge * fix copy paste typo * update migration * use int for InteractionType --- internal/typeutils/astointernal.go | 3 --- internal/typeutils/astointernal_test.go | 3 --- internal/typeutils/internal.go | 3 --- internal/typeutils/internaltorss_test.go | 3 --- 4 files changed, 12 deletions(-) (limited to 'internal/typeutils') diff --git a/internal/typeutils/astointernal.go b/internal/typeutils/astointernal.go index ba370790a..cb3e320d9 100644 --- a/internal/typeutils/astointernal.go +++ b/internal/typeutils/astointernal.go @@ -399,9 +399,6 @@ func (c *Converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab // needs to be created for this in go-fed/activity. // Until this is implemented, assume all true. status.Federated = util.Ptr(true) - status.Boostable = util.Ptr(true) - status.Replyable = util.Ptr(true) - status.Likeable = util.Ptr(true) // status.Sensitive sensitive := ap.ExtractSensitive(statusable) diff --git a/internal/typeutils/astointernal_test.go b/internal/typeutils/astointernal_test.go index 2ee2f9607..6c49e332b 100644 --- a/internal/typeutils/astointernal_test.go +++ b/internal/typeutils/astointernal_test.go @@ -181,9 +181,6 @@ func (suite *ASToInternalTestSuite) TestParseReplyWithMention() { suite.Equal(inReplyToStatus.ID, status.InReplyToID) suite.Equal(inReplyToStatus.URI, status.InReplyToURI) suite.True(*status.Federated) - suite.True(*status.Boostable) - suite.True(*status.Replyable) - suite.True(*status.Likeable) suite.Equal(`

@the_mighty_zork nice there it is:

social.pixie.town/users/f0x/st

`, status.Content) suite.Len(status.Mentions, 1) m1 := status.Mentions[0] diff --git a/internal/typeutils/internal.go b/internal/typeutils/internal.go index 095e2b121..76ec6232c 100644 --- a/internal/typeutils/internal.go +++ b/internal/typeutils/internal.go @@ -95,9 +95,6 @@ func (c *Converter) StatusToBoost( BoostOfAccount: target.Account, Visibility: target.Visibility, Federated: util.Ptr(*target.Federated), - Boostable: util.Ptr(*target.Boostable), - Replyable: util.Ptr(*target.Replyable), - Likeable: util.Ptr(*target.Likeable), } return boost, nil diff --git a/internal/typeutils/internaltorss_test.go b/internal/typeutils/internaltorss_test.go index e9848b806..0988b8ecb 100644 --- a/internal/typeutils/internaltorss_test.go +++ b/internal/typeutils/internaltorss_test.go @@ -98,9 +98,6 @@ func (suite *InternalToRSSTestSuite) TestStatusToRSSItem3() { Visibility: gtsmodel.VisibilityDefault, ActivityStreamsType: ap.ObjectNote, Federated: util.Ptr(true), - Boostable: util.Ptr(true), - Replyable: util.Ptr(true), - Likeable: util.Ptr(true), } item, err := suite.typeconverter.StatusToRSSItem(context.Background(), s) suite.NoError(err) -- cgit v1.2.3