Fix page title in case of no copyright tag

This commit is contained in:
nonamethanks
2021-02-07 18:10:37 +01:00
parent c31f2003d9
commit b47f242de3

View File

@@ -73,7 +73,7 @@ class TagSetPresenter
copyrights = copytags.max_by(1, &:post_count).map(&:unqualified_name)
copyrights += ["#{copytags.size - 1} more"] if copytags.size > 1
copyrights = copyrights.to_sentence
copyrights = "(#{copyrights})" if characters.present?
copyrights = "(#{copyrights})" if characters.present? && copyrights.present?
artists = tags_for_category("artist").map(&:name).grep_v("banned_artist").to_sentence
artists = "drawn by #{artists}" if artists.present?