about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-18 23:59:04 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:43:08 -0500
commitdc5526f4ae8c9d3a6f132b2bc72914b95e5286cc (patch)
tree511631c5b0b87d0b8c4dae207af03aa80d54be73 /app/serializers/rest
parentc6ede2d0eef48df6f9a70bb9c2036d688bda35af (diff)
[Privacy, Federation, UI] Add options to allow Fediverse users to decide whether to include replies and unlisted posts on their profiles
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/account_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/account_serializer.rb b/app/serializers/rest/account_serializer.rb
index bc941d3e7..e425c34a0 100644
--- a/app/serializers/rest/account_serializer.rb
+++ b/app/serializers/rest/account_serializer.rb
@@ -7,7 +7,7 @@ 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
+  attributes :require_dereference, :show_replies, :show_unlisted
 
   has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved_and_not_nested?
   has_many :emojis, serializer: REST::CustomEmojiSerializer