mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-23 11:03:50 -05:00
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:
parent
33c56212b9
commit
d4bb04c45c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user