Skip to content

Commit

Permalink
Export private comments in the admin ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby authored Dec 29, 2023
1 parent 69ea9b4 commit 527008c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/export_domain_blocks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 527008c

Please sign in to comment.