A platform for community discussion. Free, open, simple.
FIX notifications for flag PMs (#6641)
Maja Komel993d8f346e30
diff --git a/lib/post_destroyer.rb b/lib/post_destroyer.rbindex 617cc7749a2..7336e981b64 100644--- a/lib/post_destroyer.rb+++ b/lib/post_destroyer.rb@@ -133,7 +133,6 @@ class PostDestroyerTopic.reset_highest(@post.topic_id)endtrash_public_post_actions- agree_with_flagstrash_user_actions@post.update_flagged_posts_countremove_associated_replies@@ -147,6 +146,9 @@ class PostDestroyerupdate_associated_category_latest_topicupdate_user_countsTopicUser.update_post_action_cache(post_id: @post.id)+ DB.after_commit do+ agree_with_flags+ endendfeature_users_in_the_topic if @post.topic