FIX notifications for flag PMs (#6641)

This commit is contained in:
Maja Komel 2018-11-22 03:25:19 +01:00 committed by Guo Xiang Tan
parent 8e32aa1483
commit 993d8f346e
1 changed files with 3 additions and 1 deletions

View File

@ -133,7 +133,6 @@ class PostDestroyer
Topic.reset_highest(@post.topic_id) Topic.reset_highest(@post.topic_id)
end end
trash_public_post_actions trash_public_post_actions
agree_with_flags
trash_user_actions trash_user_actions
@post.update_flagged_posts_count @post.update_flagged_posts_count
remove_associated_replies remove_associated_replies
@ -147,6 +146,9 @@ class PostDestroyer
update_associated_category_latest_topic update_associated_category_latest_topic
update_user_counts update_user_counts
TopicUser.update_post_action_cache(post_id: @post.id) TopicUser.update_post_action_cache(post_id: @post.id)
DB.after_commit do
agree_with_flags
end
end end
feature_users_in_the_topic if @post.topic feature_users_in_the_topic if @post.topic