mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 19:48:06 +01:00
15 lines
344 B
Ruby
15 lines
344 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class REST::MuteSerializer < ActiveModel::Serializer
|
||
|
include RoutingHelper
|
||
|
|
||
|
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
|
||
|
end
|