FIX: Add Type column to Flag Status CSV export (#30756)

This Type column is a special ":post" column on the
Flag Status report, so it did not show by default in
the CSV export of that report. This adds it so the
type of flag e.g. illegal, off topic, innapropriate
is shown in the CSV output.
This commit is contained in:
Martin Brennan
2025-01-14 13:31:55 +10:00
committed by GitHub
parent dc0bf90069
commit e9fb4131ea
2 changed files with 24 additions and 1 deletions

View File

@@ -218,6 +218,9 @@ module Jobs
elsif label[:type] == :topic
titles[label[:properties][:id]] = label[:title]
header << label[:properties][:id]
elsif label[:type] == :post
titles[label[:properties][:truncated_raw]] = label[:title]
header << label[:properties][:truncated_raw]
else
titles[label[:property]] = label[:title]
header << label[:property]