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