mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 08:25:43 +08:00
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)
|
||||
end
|
||||
trash_public_post_actions
|
||||
agree_with_flags
|
||||
trash_user_actions
|
||||
@post.update_flagged_posts_count
|
||||
remove_associated_replies
|
||||
@ -147,6 +146,9 @@ class PostDestroyer
|
||||
update_associated_category_latest_topic
|
||||
update_user_counts
|
||||
TopicUser.update_post_action_cache(post_id: @post.id)
|
||||
DB.after_commit do
|
||||
agree_with_flags
|
||||
end
|
||||
end
|
||||
|
||||
feature_users_in_the_topic if @post.topic
|
||||
|
Loading…
x
Reference in New Issue
Block a user