federate account locked status (`mp:locked`)
parent
879a4a8029
commit
40debd9f80
|
@ -36,6 +36,10 @@ class ActivityPub::Adapter < ActiveModelSerializers::Adapter::Base
|
|||
'mp' => 'https://monsterpit.net/ns#',
|
||||
'supportsChat' => 'mp:supportsChat'
|
||||
},
|
||||
locked: {
|
||||
'mp' => 'https://monsterpit.net/ns#',
|
||||
'locked' => 'mp:locked'
|
||||
},
|
||||
}.freeze
|
||||
|
||||
def self.default_key_transform
|
||||
|
|
|
@ -7,14 +7,14 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
|
|||
|
||||
context_extensions :manually_approves_followers, :featured, :also_known_as,
|
||||
:moved_to, :property_value, :hashtag, :emoji, :identity_proof,
|
||||
:adult_content, :gently, :kobold, :supports_chat
|
||||
:adult_content, :gently, :kobold, :supports_chat, :locked
|
||||
|
||||
attributes :id, :type, :following, :followers,
|
||||
:inbox, :outbox, :featured,
|
||||
:preferred_username, :name, :summary,
|
||||
:url, :manually_approves_followers,
|
||||
:gently, :kobold, :adult_content,
|
||||
:supports_chat
|
||||
:supports_chat, :locked
|
||||
|
||||
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
|
||||
|
||||
|
|
Loading…
Reference in New Issue