summaryrefslogtreecommitdiff
path: root/internal/typeutils
diff options
context:
space:
mode:
Diffstat (limited to 'internal/typeutils')
-rw-r--r--internal/typeutils/astointernal.go5
-rw-r--r--internal/typeutils/internal.go5
2 files changed, 9 insertions, 1 deletions
diff --git a/internal/typeutils/astointernal.go b/internal/typeutils/astointernal.go
index 580f999bc..9b87e03d3 100644
--- a/internal/typeutils/astointernal.go
+++ b/internal/typeutils/astointernal.go
@@ -325,6 +325,11 @@ func (c *converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab
// advanced visibility for this status
// TODO: a lot of work to be done here -- a new type needs to be created for this in go-fed/activity using ASTOOL
+ // for now we just set everything to true
+ status.Federated = true
+ status.Boostable = true
+ status.Replyable = true
+ status.Likeable = true
// sensitive
// TODO: this is a bool
diff --git a/internal/typeutils/internal.go b/internal/typeutils/internal.go
index 23839b9a8..b6a425732 100644
--- a/internal/typeutils/internal.go
+++ b/internal/typeutils/internal.go
@@ -70,7 +70,10 @@ func (c *converter) StatusToBoost(ctx context.Context, s *gtsmodel.Status, boost
BoostOfID: s.ID,
BoostOfAccountID: s.AccountID,
Visibility: s.Visibility,
- VisibilityAdvanced: s.VisibilityAdvanced,
+ Federated: s.Federated,
+ Boostable: s.Boostable,
+ Replyable: s.Replyable,
+ Likeable: s.Likeable,
// attach these here for convenience -- the boosted status/account won't go in the DB
// but they're needed in the processor and for the frontend. Since we have them, we can