1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2025-01-24 14:37:20 +00:00
mastodon/app/serializers/rest/mute_serializer.rb
2017-09-13 21:47:30 -05:00

15 lines
No EOL
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