forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return domain block digests from admin domain blocks API (mastodon#29092
- Loading branch information
1 parent
03ae338
commit 6e29bea
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters