From 527008c7f7d44474f1b1e38dd07d7bf533d2e72b Mon Sep 17 00:00:00 2001 From: Ember Date: Fri, 29 Dec 2023 13:44:41 +1100 Subject: [PATCH] Export private comments in the admin ui --- app/controllers/admin/export_domain_blocks_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/export_domain_blocks_controller.rb b/app/controllers/admin/export_domain_blocks_controller.rb index 816422d4ffcfae..df58ac2552c25b 100644 --- a/app/controllers/admin/export_domain_blocks_controller.rb +++ b/app/controllers/admin/export_domain_blocks_controller.rb @@ -63,13 +63,13 @@ def export_filename end def export_headers - %w(#domain #severity #reject_media #reject_reports #public_comment #obfuscate) + %w(#domain #severity #reject_media #reject_reports #public_comment #private_comment #obfuscate) end def export_data CSV.generate(headers: export_headers, write_headers: true) do |content| DomainBlock.with_limitations.each do |instance| - content << [instance.domain, instance.severity, instance.reject_media, instance.reject_reports, instance.public_comment, instance.obfuscate] + content << [instance.domain, instance.severity, instance.reject_media, instance.reject_reports, instance.public_comment, instance.private_comment, instance.obfuscate] end end end