Fix #3969: Translated tags should ignore artist tags.
This commit is contained in:
@@ -180,7 +180,7 @@ module Sources
|
||||
|
||||
def translated_tags
|
||||
translated_tags = tags.map(&:first).flat_map(&method(:translate_tag)).uniq.sort
|
||||
translated_tags.map { |tag| [tag.name, tag.category] }
|
||||
translated_tags.reject { |tag| tag.category == Tag.categories.artist }
|
||||
end
|
||||
|
||||
# Given a tag from the source site, should return an array of corresponding Danbooru tags.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="source-related-tags-columns">
|
||||
<% if source.present? %>
|
||||
<%= render "related_tags/tag_column", tags: source.translated_tags.map(&:first), title: "Translated Tags" %>
|
||||
<%= render "related_tags/tag_column", tags: source.translated_tags, title: "Translated Tags" %>
|
||||
|
||||
<div class="tag-column wide-column artist-related-tags-column">
|
||||
<h6>Artist</h6>
|
||||
|
||||
Reference in New Issue
Block a user