Don't serialize "account" in MuteSerializer

Doing so is somewhat unnecessary since it's always the current user's account.
This commit is contained in:
Surinna Curtis 2017-09-26 02:03:30 +00:00 committed by aschmitz
parent 33c56212b9
commit d4bb04c45c
1 changed files with 1 additions and 5 deletions

View File

@ -3,11 +3,7 @@
class REST::MuteSerializer < ActiveModel::Serializer
include RoutingHelper
attributes :id, :account, :target_account, :created_at, :hide_notifications
def account
REST::AccountSerializer.new(object.account)
end
attributes :id, :target_account, :created_at, :hide_notifications
def target_account
REST::AccountSerializer.new(object.target_account)