about summary refs log tree commit diff
path: root/app/lib/activitypub
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-07 00:20:41 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:17 -0500
commit256e85e32608f012209fd1d52486174995b77905 (patch)
tree37cef8207a19ae8c364243bac597a4c45df97e72 /app/lib/activitypub
parent93b17730518898d7de5ce1a3c6cc4df40f30c79d (diff)
[Feature, Federation] Add support for arbitarty account and server metadata fields
Diffstat (limited to 'app/lib/activitypub')
-rw-r--r--app/lib/activitypub/adapter.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/activitypub/adapter.rb b/app/lib/activitypub/adapter.rb
index 5b78b8a7b..b02059430 100644
--- a/app/lib/activitypub/adapter.rb
+++ b/app/lib/activitypub/adapter.rb
@@ -14,6 +14,8 @@ class ActivityPub::Adapter < ActiveModelSerializers::Adapter::Base
     show_unlisted: { 'mp' => 'http://the.monsterpit.net/ns#', 'showUnlisted' => 'mp:showUnlisted' },
     private: { 'mp' => 'http://the.monsterpit.net/ns#', 'private' => 'mp:private' },
     require_auth: { 'mp' => 'http://the.monsterpit.net/ns#', 'requireAuth' => 'mp:requireAuth' },
+    metadata: { 'mp' => 'https://the.monsterpit.net/ns#', 'metadata' => { '@id' => 'mp:metadata', '@type' => '@id' } },
+    server_metadata: { 'mp' => 'https://the.monsterpit.net/ns#', 'serverMetadata' => { '@id' => 'mp:serverMetadata', '@type' => '@id' } },
     manually_approves_followers: { 'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers' },
     sensitive: { 'sensitive' => 'as:sensitive' },
     hashtag: { 'Hashtag' => 'as:Hashtag' },