wiki excerpts: show alias/implication lists even for tags without a wiki.

This commit is contained in:
evazion
2017-03-23 03:54:42 -05:00
parent 8918e301b4
commit 90cd029f6f
2 changed files with 7 additions and 0 deletions

View File

@@ -37,6 +37,11 @@ module PostSets
end
end
def tag
return nil if !is_single_tag?
@tag ||= Tag.find_by(name: Tag.normalize_name(tag_string))
end
def has_artist?
is_single_tag? && artist.present? && artist.visible?
end