From f46e3ee356eae803095f8299982529596492c3c4 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Mon, 23 Aug 2021 12:31:54 +0200 Subject: [PATCH] serialize manuallyApprovesFollowers --- internal/typeutils/internaltoas.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go index 11ace9dfa..178567dc6 100644 --- a/internal/typeutils/internaltoas.go +++ b/internal/typeutils/internaltoas.go @@ -143,7 +143,9 @@ func (c *converter) AccountToAS(a *gtsmodel.Account) (vocab.ActivityStreamsPerso // manuallyApprovesFollowers // Will be shown as a locked account. - // TODO: NOT IMPLEMENTED **YET** -- this needs to be added as an activitypub extension to https://github.com/go-fed/activity, see https://github.com/go-fed/activity/tree/master/astool + manuallyApprovesFollowersProp := streams.NewActivityStreamsManuallyApprovesFollowersProperty() + manuallyApprovesFollowersProp.Set(a.Locked) + person.SetActivityStreamsManuallyApprovesFollowers(manuallyApprovesFollowersProp) // discoverable // Will be shown in the profile directory.