fixes #1349
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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("_", " ")
|
||||||
|
|||||||
Reference in New Issue
Block a user