Eugen Rochko 3c033c4352
Add moderation warnings ()
* Add moderation warnings

Replace individual routes for disabling, silencing, and suspending
a user, as well as the report update route, with a unified account
action controller that allows you to select an action (none,
disable, silence, suspend) as well as whether it should generate an
e-mail notification with optional custom text. That notification,
with the optional custom text, is saved as a warning.

Additionally, there are warning presets you can configure to save
time when performing the above.

* Use Account#local_username_and_domain
..
account_moderation_notes_controller_spec.rb Add tests for account_moderation_notes_controller ()
accounts_controller_spec.rb Add moderation warnings ()
action_logs_controller_spec.rb Add spec for Admin::ActionLogsController#index ()
base_controller_spec.rb Improve require_admin! and require_staff! filters ()
change_email_controller_spec.rb Use raw status code on have_http_status ()
confirmations_controller_spec.rb Add resend confirmation for admin ()
custom_emojis_controller_spec.rb Add tests for admin/custom_emojis_controller ()
dashboard_controller_spec.rb Add spec for Admin::DashboardController#index ()
domain_blocks_controller_spec.rb Use raw status code on have_http_status ()
email_domain_blocks_controller_spec.rb Lint pass ()
instances_controller_spec.rb Use raw status code on have_http_status ()
invites_controller_spec.rb Add specs for Admin::InvitesController ()
report_notes_controller_spec.rb Lint pass ()
reported_statuses_controller_spec.rb Lint pass ()
reports_controller_spec.rb Add moderation warnings ()
resets_controller_spec.rb Spec Admin::ResetsController calls send_reset_password_instructions ()
roles_controller_spec.rb Add tests for admin/roles_controller ()
settings_controller_spec.rb Use raw status code on have_http_status ()
statuses_controller_spec.rb lint pass 2 ()
subscriptions_controller_spec.rb Use raw status code on have_http_status ()
tags_controller_spec.rb Fix Admin::TagsController#unhide ()
two_factor_authentications_controller_spec.rb Spec #destroy feature of Admin::TwoFactorAuthenticationsController ()