posts: show takedown page for banned artists and posts.
Show a "This page has been removed because of a takedown request" error when an unauthorized user searches for a banned tag, or tries to view a banned post.
This commit is contained in:
@@ -162,8 +162,7 @@ class WikiPagesControllerTest < ActionDispatch::IntegrationTest
|
||||
@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]"
|
||||
assert_response 451
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user