mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 12:17:31 +08:00

- moderation tab - sorting/pagination - improved third party reports support - trending charts - better perf - many fixes - refactoring - new reports Co-Authored-By: Simon Cossar <scossar@users.noreply.github.com>
20 lines
335 B
Ruby
20 lines
335 B
Ruby
class AdminDashboardNextModerationData < AdminDashboardNextData
|
|
def reports
|
|
@reports ||= %w{
|
|
flags_status
|
|
post_edits
|
|
}
|
|
end
|
|
|
|
def get_json
|
|
{
|
|
reports: self.class.reports(reports),
|
|
updated_at: Time.zone.now.as_json
|
|
}
|
|
end
|
|
|
|
def self.stats_cache_key
|
|
'moderation-dashboard-data'
|
|
end
|
|
end
|