mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 21:33:21 +00:00
Fix option to send e-mail notification about account action always being true (#11242)
This commit is contained in:
parent
ed544f3166
commit
ae003d54f9
|
@ -17,10 +17,13 @@ class Admin::AccountAction
|
||||||
:type,
|
:type,
|
||||||
:text,
|
:text,
|
||||||
:report_id,
|
:report_id,
|
||||||
:warning_preset_id,
|
:warning_preset_id
|
||||||
:send_email_notification
|
|
||||||
|
|
||||||
attr_reader :warning
|
attr_reader :warning, :send_email_notification
|
||||||
|
|
||||||
|
def send_email_notification=(value)
|
||||||
|
@send_email_notification = ActiveModel::Type::Boolean.new.cast(value)
|
||||||
|
end
|
||||||
|
|
||||||
def save!
|
def save!
|
||||||
ApplicationRecord.transaction do
|
ApplicationRecord.transaction do
|
||||||
|
|
Loading…
Reference in a new issue