FIX: no notification was being sent when a post is hidden by community flags

This commit is contained in:
Neil Lalonde
2017-09-12 15:43:03 -04:00
parent 9b3b39d8a2
commit 6831efe2e9
3 changed files with 10 additions and 3 deletions

View File

@@ -572,7 +572,8 @@ SQL
edit_delay: SiteSetting.cooldown_minutes_after_hiding_posts,
flag_reason: I18n.t("flag_reasons.#{post_action_type}"),
}
SystemMessage.create(post.user, :post_hidden, options)
Jobs.enqueue_in(5.seconds, :send_system_message, user_id: post.user.id, message_type: :post_hidden, message_options: options)
end
end