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

@ -3,7 +3,7 @@
- content_for :header_tags do
- if @account.user&.setting_noindex
%meta{ name: 'robots', content: 'noindex' }/
%meta{ name: 'robots', content: 'noindex, noarchive' }/
%link{ rel: 'alternate', type: 'application/atom+xml', href: account_stream_entry_url(@account, @stream_entry, format: 'atom') }/
%link{ rel: 'alternate', type: 'application/json+oembed', href: api_oembed_url(url: account_stream_entry_url(@account, @stream_entry), format: 'json') }/