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#',
|
'mp' => 'https://monsterpit.net/ns#',
|
||||||
'supportsChat' => 'mp:supportsChat'
|
'supportsChat' => 'mp:supportsChat'
|
||||||
},
|
},
|
||||||
|
locked: {
|
||||||
|
'mp' => 'https://monsterpit.net/ns#',
|
||||||
|
'locked' => 'mp:locked'
|
||||||
|
},
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
def self.default_key_transform
|
def self.default_key_transform
|
||||||
|
|
|
@ -7,14 +7,14 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
|
||||||
|
|
||||||
context_extensions :manually_approves_followers, :featured, :also_known_as,
|
context_extensions :manually_approves_followers, :featured, :also_known_as,
|
||||||
:moved_to, :property_value, :hashtag, :emoji, :identity_proof,
|
: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,
|
attributes :id, :type, :following, :followers,
|
||||||
:inbox, :outbox, :featured,
|
:inbox, :outbox, :featured,
|
||||||
:preferred_username, :name, :summary,
|
:preferred_username, :name, :summary,
|
||||||
:url, :manually_approves_followers,
|
:url, :manually_approves_followers,
|
||||||
:gently, :kobold, :adult_content,
|
:gently, :kobold, :adult_content,
|
||||||
:supports_chat
|
:supports_chat, :locked
|
||||||
|
|
||||||
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
|
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue