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.
mastodon/app/serializers/rest/mute_serializer.rb

16 lines
343 B
Ruby
Raw Permalink 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