about summary refs log tree commit diff
path: root/app/views/follower_accounts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-07-14 16:41:02 +0200
committerGitHub <noreply@github.com>2017-07-14 16:41:02 +0200
commitc42092ba7ad1cbf78ca8463b6525ec2b7efbdd92 (patch)
treecd2905803ff282f6a72fc449f24ede4312aff813 /app/views/follower_accounts
parent999170d898fbe98e634f827580695c0615370f75 (diff)
Add option to opt out of search engines on public profile/status pages (#4199)
Diffstat (limited to 'app/views/follower_accounts')
-rw-r--r--app/views/follower_accounts/index.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/follower_accounts/index.html.haml b/app/views/follower_accounts/index.html.haml
index 89c7f3a29..738b31638 100644
--- a/app/views/follower_accounts/index.html.haml
+++ b/app/views/follower_accounts/index.html.haml
@@ -2,6 +2,9 @@
   = t('accounts.people_who_follow', name: display_name(@account))
 
 - content_for :header_tags do
+  - if @account.user&.setting_noindex
+    %meta{ name: 'robots', content: 'noindex' }/
+
   = render 'accounts/og', account: @account, url: account_followers_url(@account, only_path: false)
 
 = render 'accounts/header', account: @account