diff --git a/app/serializers/rest/account_serializer.rb b/app/serializers/rest/account_serializer.rb index 48d13049d0..b76fc7a1b6 100644 --- a/app/serializers/rest/account_serializer.rb +++ b/app/serializers/rest/account_serializer.rb @@ -7,7 +7,7 @@ class REST::AccountSerializer < ActiveModel::Serializer attributes :id, :username, :acct, :display_name, :locked, :bot, :discoverable, :group, :created_at, :note, :url, :avatar, :avatar_static, :header, :header_static, :searchability, :subscribable, :followers_count, :following_count, :statuses_count, :last_status_at, :other_settings, - :noindex, :noai + :noindex has_one :moved_to_account, key: :moved, serializer: REST::AccountSerializer, if: :moved_and_not_nested? @@ -146,10 +146,6 @@ class REST::AccountSerializer < ActiveModel::Serializer object.noindex? end - def noai - object.noai? - end - delegate :suspended?, :silenced?, :local?, :memorial?, to: :object def moved_and_not_nested?