mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-29 02:23:41 +01:00
7696f77245
Fix #8580 Fix #7143
16 lines
543 B
Ruby
16 lines
543 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::Admin::ReportSerializer < ActiveModel::Serializer
|
|
attributes :id, :action_taken, :comment, :created_at, :updated_at
|
|
|
|
has_one :account, serializer: REST::Admin::AccountSerializer
|
|
has_one :target_account, serializer: REST::Admin::AccountSerializer
|
|
has_one :assigned_account, serializer: REST::Admin::AccountSerializer
|
|
has_one :action_taken_by_account, serializer: REST::Admin::AccountSerializer
|
|
|
|
has_many :statuses, serializer: REST::StatusSerializer
|
|
|
|
def id
|
|
object.id.to_s
|
|
end
|
|
end
|