Prevent archiving when user set "noindex" (#11421)
This commit is contained in:
parent
a0896ae4bf
commit
c1bc34da04
3 changed files with 26 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
%meta{ name: 'description', content: account_description(@account) }/
|
||||
|
||||
- if @account.user&.setting_noindex
|
||||
%meta{ name: 'robots', content: 'noindex' }/
|
||||
%meta{ name: 'robots', content: 'noindex, noarchive' }/
|
||||
|
||||
%link{ rel: 'salmon', href: api_salmon_url(@account.id) }/
|
||||
%link{ rel: 'alternate', type: 'application/atom+xml', href: account_url(@account, format: 'atom') }/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue