Add raw post content in "flagged post removed by staff" PM

This commit is contained in:
Vinoth Kannan
2019-01-21 12:27:23 +05:30
parent 2d354ec9b0
commit 9cf4013073
3 changed files with 13 additions and 3 deletions

View File

@@ -232,6 +232,7 @@ class PostDestroyer
user_id: @post.user_id,
message_type: :flags_agreed_and_post_deleted,
message_options: {
flagged_post_raw_content: @post.raw,
url: @post.url,
flag_reason: I18n.t(
"flag_reasons.#{@post.active_flags.last.post_action_type.name_key}",