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/astointernal.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/astointernal.go')
-rw-r--r-- | internal/typeutils/astointernal.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/typeutils/astointernal.go b/internal/typeutils/astointernal.go index a16318df8..887716a69 100644 --- a/internal/typeutils/astointernal.go +++ b/internal/typeutils/astointernal.go @@ -105,7 +105,12 @@ func (c *converter) ASRepresentationToAccount(accountable ap.Accountable, update } acct.ActorType = accountable.GetTypeName() - // TODO: locked aka manuallyApprovesFollowers + // locked aka manuallyApprovesFollowers + acct.Locked = true // assume locked by default + maf := accountable.GetActivityStreamsManuallyApprovesFollowers() + if maf != nil && maf.IsXMLSchemaBoolean() { + acct.Locked = maf.Get() + } // discoverable // default to false -- take custom value if it's set though |