Merge pull request #5114 from nonamethanks/editable-post-disapprovals

Allow post disapprovals to be edited
This commit is contained in:
evazion
2022-04-17 22:54:57 -05:00
committed by GitHub
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