]> cat aescling's git repositories - mastodon.git/commitdiff
Fix remote interaction dialogs being indexed by search engines (#10240)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 11 Mar 2019 19:47:50 +0000 (20:47 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Mar 2019 19:47:50 +0000 (20:47 +0100)
Fix #10116

app/views/remote_follow/new.html.haml
app/views/remote_interaction/new.html.haml

index 5cf6977ba17014fb4d3d156e41f1d1e129fcd66e..c907938429b836346bb2d7da9e5e1a5d7decde4a 100644 (file)
@@ -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
index a0b10681483d97e76221390acf558de7a83a8110..b2b7826c4a327dd56159b93fafa962f5fb377646 100644 (file)
@@ -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")