about summary refs log tree commit diff
path: root/app/serializers/rest/mute_serializer.rb
blob: c9b55ff16294020074261df04460a72b52899d14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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