summaryrefslogtreecommitdiff
path: root/internal/typeutils/internaltoas.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/typeutils/internaltoas.go')
-rw-r--r--internal/typeutils/internaltoas.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go
index cef48e194..4762e3c8b 100644
--- a/internal/typeutils/internaltoas.go
+++ b/internal/typeutils/internaltoas.go
@@ -1939,6 +1939,19 @@ func (c *Converter) InteractionPolicyToASInteractionPolicy(
policy := streams.NewGoToSocialInteractionPolicy()
/*
+ Implementation note for the below:
+ While it's possible for remote instances to set
+ sub-policies like canLike, canReply, etc to null
+ values, or omit them entirely, GtS always falls
+ back to default non-nil sub-policies when storing
+ policies created for local statuses. Therefore,
+ since we only ever serialize our *own* statuses
+ to AS format using this function, it's safe to
+ assume that the values will always be set, rather
+ than checking for nil ptrs.
+ */
+
+ /*
CAN LIKE
*/