From b47f242de3cb405563737cb658a20b1edce893a6 Mon Sep 17 00:00:00 2001 From: nonamethanks Date: Sun, 7 Feb 2021 18:10:37 +0100 Subject: [PATCH] Fix page title in case of no copyright tag --- app/presenters/tag_set_presenter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/presenters/tag_set_presenter.rb b/app/presenters/tag_set_presenter.rb index d167c3cd1..aa48100df 100644 --- a/app/presenters/tag_set_presenter.rb +++ b/app/presenters/tag_set_presenter.rb @@ -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?