artists: prevent Google from indexing banned artists.

Prevent search engines from indexing artist pages, wiki pages, and tag
searches for banned artists.
This commit is contained in:
evazion
2021-02-07 22:45:36 -06:00
parent e23f09235e
commit 7b4bab54af
8 changed files with 38 additions and 3 deletions

View File

@@ -121,6 +121,14 @@ class WikiPagesControllerTest < ActionDispatch::IntegrationTest
get wiki_page_path("....xml")
assert_response :success
end
should "mark banned artists as noindex" do
@artist = create(:artist, name: @wiki_page.title, is_banned: true)
get wiki_page_path(@wiki_page.title)
assert_response :success
assert_select "meta[name=robots][content=noindex]"
end
end
context "show_or_new action" do