diff options
author | 2024-07-11 16:44:29 +0200 | |
---|---|---|
committer | 2024-07-11 15:44:29 +0100 | |
commit | 5bc567196bf2204272950c525e8592e56057c3bd (patch) | |
tree | 24aec5e75d2a0208505da16ee2c55efd887d3e25 /internal/typeutils | |
parent | [bugfix] Don't throw error when parent statuses are missing (#2011) (#3088) (diff) | |
download | gotosocial-5bc567196bf2204272950c525e8592e56057c3bd.tar.xz |
[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
Diffstat (limited to 'internal/typeutils')
-rw-r--r-- | internal/typeutils/astointernal.go | 3 | ||||
-rw-r--r-- | internal/typeutils/astointernal_test.go | 3 | ||||
-rw-r--r-- | internal/typeutils/internal.go | 3 | ||||
-rw-r--r-- | internal/typeutils/internaltorss_test.go | 3 |
4 files changed, 0 insertions, 12 deletions
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(`<p><span class="h-card"><a href="http://localhost:8080/@the_mighty_zork" class="u-url mention">@<span>the_mighty_zork</span></a></span> nice there it is:</p><p><a href="http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/activity" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">social.pixie.town/users/f0x/st</span><span class="invisible">atuses/106221628567855262/activity</span></a></p>`, 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) |