about summary refs log tree commit diff
path: root/app/serializers/activitypub/actor_serializer.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-04 10:16:52 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-04 10:17:43 -0600
commitd0769f0309e0bae477d955c6433b8baec034f848 (patch)
treef574108f0a2649041e51cca3e733f62e83620297 /app/serializers/activitypub/actor_serializer.rb
parent244a90b45e926ebc37685ff5f79a011381b1eb97 (diff)
monsterpit says trans rights!!!
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