about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2022-12-13 09:41:04 -0600
committerStarfall <us@starfall.systems>2022-12-13 09:41:04 -0600
commite073e66d3b0c8eeb1ed66c67881c33ab5924aa8c (patch)
tree42a565060265667124d161693c07691596816f03
parent9a99643ecd1e11c8763bbcb5c10bd3dfac3dd638 (diff)
Restore domain block serializer to fix domain blocklist on /about
-rw-r--r--app/serializers/rest/domain_block_serializer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/rest/domain_block_serializer.rb b/app/serializers/rest/domain_block_serializer.rb
index a9d443df1..4709418cf 100644
--- a/app/serializers/rest/domain_block_serializer.rb
+++ b/app/serializers/rest/domain_block_serializer.rb
@@ -4,7 +4,7 @@ class REST::DomainBlockSerializer < ActiveModel::Serializer
   attributes :domain, :digest, :severity, :comment
 
   def domain
-    ""
+    object.public_domain
   end
 
   def digest
@@ -12,6 +12,6 @@ class REST::DomainBlockSerializer < ActiveModel::Serializer
   end
 
   def comment
-    ""
+    object.public_comment if instance_options[:with_comment]
   end
 end