1
0
mirror of https://github.com/glitch-soc/mastodon.git synced 2025-01-27 10:03:11 -05:00

15 lines
344 B
Ruby
Raw Normal View History

# 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