From 9dc413b02526f60865f14b7582ac4e89dc6673f3 Mon Sep 17 00:00:00 2001 From: Maciek Baron Date: Wed, 4 Jul 2018 01:58:44 +0100 Subject: [PATCH] Respect noindex rule in remote follow view (fix #7869) (#7939) --- app/views/remote_follow/new.html.haml | 4 ++++ 1 file changed, 4 insertions(+) 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')