Add category for mod actions

This commit is contained in:
BrokenEagle
2018-01-13 14:48:08 -08:00
parent b9964e97a7
commit 3c45273694
18 changed files with 92 additions and 32 deletions

View File

@@ -28,7 +28,7 @@ class PostApproval < ApplicationRecord
end
def approve_post
ModAction.log("undeleted post ##{post_id}") if post.is_deleted
ModAction.log("undeleted post ##{post_id}",:post_undelete) if post.is_deleted
post.flags.each(&:resolve!)
post.update({ approver: user, is_flagged: false, is_pending: false, is_deleted: false }, without_protection: true)