Skip to content

Commit

Permalink
Return domain block digests from admin domain blocks API (#29092)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMissEm authored and ClearlyClaire committed May 16, 2024
1 parent 0a6dddd commit 06614f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/serializers/rest/admin/domain_block_serializer.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# frozen_string_literal: true

class REST::Admin::DomainBlockSerializer < ActiveModel::Serializer
attributes :id, :domain, :created_at, :severity,
attributes :id, :domain, :digest, :created_at, :severity,
:reject_media, :reject_reports,
:private_comment, :public_comment, :obfuscate

def id
object.id.to_s
end

def digest
object.domain_digest
end
end

0 comments on commit 06614f6

Please sign in to comment.