about summary refs log tree commit diff
path: root/app/serializers/rest/account_serializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/rest/account_serializer.rb')
-rw-r--r--app/serializers/rest/account_serializer.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/serializers/rest/account_serializer.rb b/app/serializers/rest/account_serializer.rb
index 3e826aaf3..54308af1b 100644
--- a/app/serializers/rest/account_serializer.rb
+++ b/app/serializers/rest/account_serializer.rb
@@ -7,7 +7,7 @@ class REST::AccountSerializer < ActiveModel::Serializer
              :updated_at, :note, :url, :avatar, :avatar_static, :header,
              :header_static, :followers_count, :following_count, :statuses_count,
              :replies, :adult_content, :gently, :kobold, :role, :froze, :identity,
-             :limited, :signature
+             :limited, :signature, :trans
 
   has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved_and_not_nested?
   has_many :emojis, serializer: REST::CustomEmojiSerializer
@@ -22,6 +22,10 @@ class REST::AccountSerializer < ActiveModel::Serializer
 
   has_many :fields
 
+  def trans
+    'rights'
+  end
+
   def id
     object.id.to_s
   end