mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 22:36:14 -06:00
serialize manuallyApprovesFollowers
This commit is contained in:
parent
9f1a01c0ce
commit
f46e3ee356
1 changed files with 3 additions and 1 deletions
|
|
@ -143,7 +143,9 @@ func (c *converter) AccountToAS(a *gtsmodel.Account) (vocab.ActivityStreamsPerso
|
||||||
|
|
||||||
// manuallyApprovesFollowers
|
// manuallyApprovesFollowers
|
||||||
// Will be shown as a locked account.
|
// 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
|
// discoverable
|
||||||
// Will be shown in the profile directory.
|
// Will be shown in the profile directory.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue