post_approval.rb: log correct post id when approving deleted posts.
This commit is contained in:
@@ -28,7 +28,7 @@ class PostApproval < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def approve_post
|
||||
ModAction.log("undeleted post ##{id}") if post.is_deleted
|
||||
ModAction.log("undeleted post ##{post_id}") if post.is_deleted
|
||||
|
||||
post.flags.each(&:resolve!)
|
||||
post.update({ approver: user, is_flagged: false, is_pending: false, is_deleted: false }, without_protection: true)
|
||||
|
||||
Reference in New Issue
Block a user