Prevent archiving when user set "noindex" (#11421)

This commit is contained in:
Jeong Arm 2019-07-28 20:46:04 +09:00 committed by Eugen Rochko
parent a0896ae4bf
commit c1bc34da04
3 changed files with 26 additions and 2 deletions

View file

@ -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') }/