2017-09-02 19:10:10 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::MuteSerializer < ActiveModel::Serializer
|
|
|
|
include RoutingHelper
|
2023-04-09 10:25:30 +01:00
|
|
|
|
2017-09-02 19:10:10 +01: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 10:25:30 +01:00
|
|
|
end
|