2017-09-02 18:10:10 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::MuteSerializer < ActiveModel::Serializer
|
|
|
|
include RoutingHelper
|
2023-04-09 09:25:30 +00:00
|
|
|
|
2017-09-02 18:10:10 +00:00
|
|
|
attributes :id, :account, :target_account, :created_at, :hide_notifications
|
|
|
|
|
|
|
|
def account
|
|
|
|
REST::AccountSerializer.new(object.account)
|
|
|
|
end
|
|
|
|
|
|
|
|
def target_account
|
|
|
|
REST::AccountSerializer.new(object.target_account)
|
|
|
|
end
|
2023-04-09 09:25:30 +00:00
|
|
|
end
|