This commit is contained in:
r888888888
2013-04-16 20:27:10 -07:00
parent 5d501b1ee4
commit 8696ec8dc2
2 changed files with 7 additions and 3 deletions

View File

@@ -456,7 +456,11 @@ class Post < ActiveRecord::Base
end end
def artist_tags def artist_tags
typed_tags("artist") - %w(banned_artist) typed_tags("artist")
end
def artist_tags_excluding_hidden
artist_tags - %(banned_artist)
end end
def general_tags def general_tags

View File

@@ -59,9 +59,9 @@ class PostPresenter < Presenter
string << (@post.character_tags.any? ? "(#{copytags})" : copytags) string << (@post.character_tags.any? ? "(#{copytags})" : copytags)
end end
if @post.artist_tags.any? if @post.artist_tags_excluding_hidden.any?
string << "drawn by" string << "drawn by"
string << @post.artist_tags.to_sentence string << @post.artist_tags_excluding_hidden.to_sentence
end end
string.empty? ? "##{@post.id}" : string.join(" ").tr("_", " ") string.empty? ? "##{@post.id}" : string.join(" ").tr("_", " ")