Rename "locked" to "manuallyApprovesFollowers" in ActivityPub (#4779)
See: <https://www.w3.org/wiki/Activity_Streams_extensions#as:manuallyApprovesFollowers>
This commit is contained in:
parent
6ec1aa372d
commit
37fdddd927
3 changed files with 13 additions and 10 deletions
|
@ -6,7 +6,7 @@ class ActivityPub::ActorSerializer < ActiveModel::Serializer
|
|||
attributes :id, :type, :following, :followers,
|
||||
:inbox, :outbox, :shared_inbox,
|
||||
:preferred_username, :name, :summary,
|
||||
:url, :locked
|
||||
:url, :manually_approves_followers
|
||||
|
||||
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
|
||||
|
||||
|
@ -90,4 +90,8 @@ class ActivityPub::ActorSerializer < ActiveModel::Serializer
|
|||
def header_exists?
|
||||
object.header.exists?
|
||||
end
|
||||
|
||||
def manually_approves_followers
|
||||
object.locked
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue