mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: add noindex header to user summary page.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user