This commit is contained in:
albert
2011-10-30 16:42:43 -04:00
parent be9e559fb1
commit 640a5f72c1
2 changed files with 19 additions and 17 deletions

View File

@@ -497,19 +497,19 @@ class Post < ActiveRecord::Base
tag_categories = Tag.categories_for(tag_array)
tag_array.each do |tag|
if tag_categories[tag] == Danbooru.config.tag_category_mapping["copyright"]
return "copyright: " + tag
return tag
end
end
tag_array.each do |tag|
if tag_categories[tag] == Danbooru.config.tag_category_mapping["character"]
return "character: " + tag
return tag
end
end
tag_array.each do |tag|
if tag_categories[tag] == Danbooru.config.tag_category_mapping["artist"]
return "artist: " + tag
return tag
end
end