FIX: add noindex header to user summary page.

This commit is contained in:
Vinoth Kannan
2020-07-16 02:32:55 +05:30
parent 24b3996f45
commit 4f4d8d683f
2 changed files with 3 additions and 0 deletions

View File

@ -2816,6 +2816,7 @@ describe UsersController do
create_post(user: user)
get "/u/#{user.username_lower}/summary.json"
expect(response.headers['X-Robots-Tag']).to eq('noindex')
expect(response.status).to eq(200)
json = response.parsed_body