summaryrefslogtreecommitdiff
path: root/internal/typeutils/astointernal.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-08-23 12:46:05 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-23 12:46:05 +0200
commit071eca20ce9527153ed2e549f6198aad32380495 (patch)
tree958c75f403655b5fedabb20f5e431386798f02b2 /internal/typeutils/astointernal.go
parentDatabase updates (#144) (diff)
downloadgotosocial-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.go7
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