diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-18 21:32:40 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-18 21:32:40 -0500 |
commit | 40debd9f80f363c06e03b8c67c076a1060016aab (patch) | |
tree | 9e2cd0bc8a845b36fa7b821220d151ac486651dc /app | |
parent | 879a4a80290b9e122fd9fc007cc7bd0a2d44c561 (diff) |
federate account locked status (`mp:locked`)
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/activitypub/adapter.rb | 4 | ||||
-rw-r--r-- | app/serializers/activitypub/actor_serializer.rb | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app/lib/activitypub/adapter.rb b/app/lib/activitypub/adapter.rb index 2edad1caa..7b0b1390c 100644 --- a/app/lib/activitypub/adapter.rb +++ b/app/lib/activitypub/adapter.rb @@ -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 diff --git a/app/serializers/activitypub/actor_serializer.rb b/app/serializers/activitypub/actor_serializer.rb index a260a6f1f..95110bfc2 100644 --- a/app/serializers/activitypub/actor_serializer.rb +++ b/app/serializers/activitypub/actor_serializer.rb @@ -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 |