mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
better revision history
This commit is contained in:
@@ -124,7 +124,7 @@ class PostDestroyer
|
||||
Post.transaction do
|
||||
@post.update_column(:user_deleted, false)
|
||||
@post.skip_unique_check = true
|
||||
@post.revise(@user, @post.versions.last.modifications["raw"][0], force_new_version: true)
|
||||
@post.revise(@user, @post.revisions.last.modifications["raw"][0], force_new_version: true)
|
||||
@post.update_flagged_posts_count
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user