summaryrefslogtreecommitdiff
path: root/internal/typeutils/astointernal.go
diff options
context:
space:
mode:
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