diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-14 16:41:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-14 16:41:02 +0200 |
commit | c42092ba7ad1cbf78ca8463b6525ec2b7efbdd92 (patch) | |
tree | cd2905803ff282f6a72fc449f24ede4312aff813 /app/views/stream_entries | |
parent | 999170d898fbe98e634f827580695c0615370f75 (diff) |
Add option to opt out of search engines on public profile/status pages (#4199)
Diffstat (limited to 'app/views/stream_entries')
-rw-r--r-- | app/views/stream_entries/show.html.haml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/stream_entries/show.html.haml b/app/views/stream_entries/show.html.haml index d01e82af8..80ea30eb1 100644 --- a/app/views/stream_entries/show.html.haml +++ b/app/views/stream_entries/show.html.haml @@ -1,4 +1,7 @@ - content_for :header_tags do + - if @account.user&.setting_noindex + %meta{ name: 'robots', content: 'noindex' }/ + %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') }/ |