posts: clarify missing artist tag warning (#4029).

This commit is contained in:
evazion
2018-12-28 15:50:55 -06:00
parent 6a77b68b74
commit fde398d37b

View File

@@ -1788,7 +1788,7 @@ class Post < ApplicationRecord
return if tags.any? { |t| t.category == Tag.categories.artist }
return if Sources::Strategies.find(source).is_a?(Sources::Strategies::Null)
self.warnings[:base] << "Artist tag is required. Create a new tag with [[artist:<artist_name>]]. Ask on the forum if you need naming help"
self.warnings[:base] << "Artist tag is required. \"Create new artist tag\":[/artists/new?artist%5Bsource%5D=#{CGI::escape(source)}]. Ask on the forum if you need naming help"
end
def has_copyright_tag