about summary refs log tree commit diff
path: root/app/views/following_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/following_accounts
parent999170d898fbe98e634f827580695c0615370f75 (diff)
Add option to opt out of search engines on public profile/status pages (#4199)
Diffstat (limited to 'app/views/following_accounts')
-rw-r--r--app/views/following_accounts/index.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/following_accounts/index.html.haml b/app/views/following_accounts/index.html.haml
index 6f0de7590..9637c689f 100644
--- a/app/views/following_accounts/index.html.haml
+++ b/app/views/following_accounts/index.html.haml
@@ -2,6 +2,9 @@
   = t('accounts.people_followed_by', 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