fixes #2865: Undeleting a post doesn't resolve flags

This commit is contained in:
r888888888
2017-02-03 14:22:21 -08:00
parent 7a05af657a
commit 497011289f

View File

@@ -1412,6 +1412,7 @@ class Post < ActiveRecord::Base
self.is_deleted = false
self.approver_id = CurrentUser.id
flags.each {|x| x.resolve!}
save
Post.expire_cache_for_all(tag_array)
ModAction.log("undeleted post ##{id}")