0
0
Fork 0

Rename "locked" to "manuallyApprovesFollowers" in ActivityPub (#4779)

See: <https://www.w3.org/wiki/Activity_Streams_extensions#as:manuallyApprovesFollowers>
This commit is contained in:
Eugen Rochko 2017-09-02 23:13:35 +02:00 committed by GitHub
parent 6ec1aa372d
commit 37fdddd927
3 changed files with 13 additions and 10 deletions

View file

@ -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