This commit is contained in:
albert
2013-02-28 13:34:03 -08:00
parent 993c27aef2
commit 2dbd7b180f

View File

@@ -5,7 +5,9 @@ module Moderator
def create
@post = ::Post.find(params[:post_id])
@post.approve!
if @post.is_deleted? || @post.is_flagged? || @post.is_pending?
@post.approve!
end
rescue ::Post::ApprovalError
end
end