diff options
author | 2021-08-23 12:46:05 +0200 | |
---|---|---|
committer | 2021-08-23 12:46:05 +0200 | |
commit | 071eca20ce9527153ed2e549f6198aad32380495 (patch) | |
tree | 958c75f403655b5fedabb20f5e431386798f02b2 /internal/typeutils/internaltoas.go | |
parent | Database updates (#144) (diff) | |
download | gotosocial-071eca20ce9527153ed2e549f6198aad32380495.tar.xz |
Manually approves followers (#146)
* update go-fed
* update go-fed
* manuallyapprovesfollowers
* serialize manuallyApprovesFollowers
Diffstat (limited to 'internal/typeutils/internaltoas.go')
-rw-r--r-- | internal/typeutils/internaltoas.go | 4 |
1 files changed, 3 insertions, 1 deletions
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. |