diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-28 02:14:15 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | 89e54748d7e227f0862c9a6a2d87cb8d73783d8a (patch) | |
tree | f92b4a4887fdd91ce88b8ce3b7116fe1a275a671 /app/serializers/rest | |
parent | e87151f458b4f4bb7a9f4123c01cd26e0e1e9e81 (diff) |
Don't show Roars & Growls tag in web app if someone has disabled showing public replies.
Diffstat (limited to 'app/serializers/rest')
-rw-r--r-- | app/serializers/rest/account_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/account_serializer.rb b/app/serializers/rest/account_serializer.rb index c34d23452..574ccfc85 100644 --- a/app/serializers/rest/account_serializer.rb +++ b/app/serializers/rest/account_serializer.rb @@ -5,7 +5,7 @@ class REST::AccountSerializer < ActiveModel::Serializer attributes :id, :username, :acct, :display_name, :locked, :bot, :created_at, :note, :url, :avatar, :avatar_static, :header, :header_static, - :followers_count, :following_count, :statuses_count + :followers_count, :following_count, :statuses_count, :replies has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved_and_not_nested? has_many :emojis, serializer: REST::CustomEmojiSerializer |