blob: db33f8574d97cf5469d3e4f84e8e976abaa4d8ba (
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, :timelines_only
def account
REST::AccountSerializer.new(object.account)
end
def target_account
REST::AccountSerializer.new(object.target_account)
end
end
|