This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-09-02 11:10:10 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::MuteSerializer < ActiveModel::Serializer
|
|
|
|
include RoutingHelper
|
2023-04-09 02:25:30 -07:00
|
|
|
|
2017-09-02 11:10:10 -07: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 02:25:30 -07:00
|
|
|
end
|