posts: autoban uploads tagged paid_reward.

This commit is contained in:
evazion
2020-07-06 13:18:55 -05:00
parent 722bb6deae
commit 0c7d48d890
2 changed files with 16 additions and 1 deletions

View File

@@ -300,7 +300,7 @@ class Post < ApplicationRecord
end
def autoban
if has_tag?("banned_artist")
if has_tag?("banned_artist") || has_tag?("paid_reward")
self.is_banned = true
end
end