FIX notifications for flag PMs (#6641)
This commit is contained in:
parent
8e32aa1483
commit
993d8f346e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue