diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-11 20:47:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 20:47:50 +0100 |
commit | f5eeac01047874269bbb2910bab4b32f739c616d (patch) | |
tree | 258078c548fb7f79a9ea206255117820b794ca89 /app/views | |
parent | c8122e84cc140f49d7bce0540b6e389781c0fdaf (diff) |
Fix remote interaction dialogs being indexed by search engines (#10240)
Fix #10116
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/remote_follow/new.html.haml | 3 | ||||
-rw-r--r-- | app/views/remote_interaction/new.html.haml | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/remote_follow/new.html.haml b/app/views/remote_follow/new.html.haml index 5cf6977ba..c90793842 100644 --- a/app/views/remote_follow/new.html.haml +++ b/app/views/remote_follow/new.html.haml @@ -1,6 +1,5 @@ - content_for :header_tags do - - if @account.user&.setting_noindex - %meta{ name: 'robots', content: 'noindex' }/ + %meta{ name: 'robots', content: 'noindex' }/ .form-container .follow-prompt diff --git a/app/views/remote_interaction/new.html.haml b/app/views/remote_interaction/new.html.haml index a0b106814..b2b7826c4 100644 --- a/app/views/remote_interaction/new.html.haml +++ b/app/views/remote_interaction/new.html.haml @@ -1,3 +1,6 @@ +- content_for :header_tags do + %meta{ name: 'robots', content: 'noindex' }/ + .form-container .follow-prompt %h2= t("remote_interaction.#{@interaction_type}.prompt") |