posts: don't warn about missing artist tags for official_art.

This commit is contained in:
evazion
2017-11-26 11:42:00 -06:00
parent bc3e2438d9
commit 6d9708a22e

View File

@@ -1761,7 +1761,8 @@ class Post < ApplicationRecord
def has_artist_tag
return if !new_record?
return if source !~ %r!\Ahttps?://!
return if has_tag?("artist_request") || tags.any? { |t| t.category == Tag.categories.artist }
return if has_tag?("artist_request") || has_tag?("official_art")
return if tags.any? { |t| t.category == Tag.categories.artist }
site = Sources::Site.new(source)
self.warnings[:base] << "Artist tag is required. Create a new tag with [[artist:<artist_name>]]. Ask on the forum if you need naming help"