]> cat aescling's git repositories - mastodon.git/commitdiff
Respect noindex rule in remote follow view (fix #7869) (#7939)
authorMaciek Baron <thebezet@gmail.com>
Wed, 4 Jul 2018 00:58:44 +0000 (01:58 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 4 Jul 2018 00:58:44 +0000 (02:58 +0200)
app/views/remote_follow/new.html.haml

index 3273c318c05e69f36052d4a11dc5b8fc0ad32a1d..361bb53e44cf3f7196ac02c706d4b35109f53978 100644 (file)
@@ -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')