mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
17 lines
300 B
Ruby
17 lines
300 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Admin::ReportsHelper
|
|
def explanation_key(action)
|
|
explanation_mapping.fetch(action) { action }
|
|
end
|
|
|
|
private
|
|
|
|
def explanation_mapping
|
|
{
|
|
'delete' => 'delete_statuses',
|
|
'mark_as_sensitive' => 'mark_statuses_as_sensitive',
|
|
}
|
|
end
|
|
end
|