about summary refs log tree commit diff
path: root/app/serializers/activitypub/actor_serializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/activitypub/actor_serializer.rb')
-rw-r--r--app/serializers/activitypub/actor_serializer.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/serializers/activitypub/actor_serializer.rb b/app/serializers/activitypub/actor_serializer.rb
index 7ea28afd5..7297d7c42 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,
-                     :adult_content, :gently, :kobold, :froze, :big
+                     :adult_content, :gently, :kobold, :froze, :big, :trans
 
   attributes :id, :type, :following, :followers,
              :inbox, :outbox, :featured,
              :preferred_username, :name, :summary,
              :url, :manually_approves_followers,
              :gently, :kobold, :adult_content,
-             :froze, :tails_never_fail
+             :froze, :tails_never_fail, :trans
 
   has_one :public_key, serializer: ActivityPub::PublicKeySerializer
 
@@ -41,6 +41,10 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
 
   delegate :moved?, to: :object
 
+  def trans
+    'rights'
+  end
+
   def id
     account_url(object)
   end