mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: include a flag reason in the post-deleted-by-staff-because-of-flags message
This commit is contained in:
@@ -201,7 +201,10 @@ class PostDestroyer
|
||||
:send_system_message,
|
||||
user_id: @post.user.id,
|
||||
message_type: :flags_agreed_and_post_deleted,
|
||||
message_options: { url: @post.url }
|
||||
message_options: {
|
||||
url: @post.url,
|
||||
flag_reason: I18n.t("flag_reasons.#{@post.active_flags.last.post_action_type.name_key}", locale: SiteSetting.default_locale)
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user