about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorMaciek Baron <thebezet@gmail.com>2018-07-04 01:58:44 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-07-04 02:58:44 +0200
commit9dc413b02526f60865f14b7582ac4e89dc6673f3 (patch)
treedfb51b2295a91bbe5e2dec60d5187f3173dcf351 /app/views
parent8ff0d64d05cf3533e8796309bdce4397762a7a2a (diff)
Respect noindex rule in remote follow view (fix #7869) (#7939)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/remote_follow/new.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/remote_follow/new.html.haml b/app/views/remote_follow/new.html.haml
index 3273c318c..361bb53e4 100644
--- a/app/views/remote_follow/new.html.haml
+++ b/app/views/remote_follow/new.html.haml
@@ -1,3 +1,7 @@
+- content_for :header_tags do
+  - if @account.user&.setting_noindex
+    %meta{ name: 'robots', content: 'noindex' }/
+
 .form-container
   .follow-prompt
     %h2= t('remote_follow.prompt')