about summary refs log tree commit diff
path: root/app/serializers/rest/mute_serializer.rb
blob: 043a2f05969dd68f434558a90a1a2927d189e450 (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