about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-17 22:08:47 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:43:08 -0500
commit28be38e40c6d56fd7bc0b0c98a3b76609e70b903 (patch)
treebd3a22d7f87787b7cbeb7baa5065724f533cc6b9 /app/serializers/rest
parent1a4c553afdba941eeac554ee8e2f47b2db2c6b48 (diff)
[Privacy] Add profile option for indirect federation mode, disabled by default
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/account_serializer.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/rest/account_serializer.rb b/app/serializers/rest/account_serializer.rb
index 4e497cdbd..bc941d3e7 100644
--- a/app/serializers/rest/account_serializer.rb
+++ b/app/serializers/rest/account_serializer.rb
@@ -7,6 +7,8 @@ class REST::AccountSerializer < ActiveModel::Serializer
              :note, :url, :avatar, :avatar_static, :header, :header_static,
              :followers_count, :following_count, :statuses_count, :last_status_at
 
+  attribute :require_dereference
+
   has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved_and_not_nested?
   has_many :emojis, serializer: REST::CustomEmojiSerializer