Allow post disapprovals to be edited

This commit is contained in:
nonamethanks
2022-04-11 20:48:10 +02:00
parent 05261bf6d7
commit 1a990d5ab9
11 changed files with 76 additions and 19 deletions

View File

@@ -267,10 +267,6 @@ class Post < ApplicationRecord
!is_active? && uploader != user
end
def disapproved_by?(user)
PostDisapproval.exists?(user_id: user.id, post_id: id)
end
def autoban
if has_tag?("banned_artist") || has_tag?("paid_reward")
self.is_banned = true