From 75b0c9e9aaba123c48b62026ce035ac20c42aa4d Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 16 Feb 2021 15:32:43 -0600 Subject: [PATCH] iqdb: block crawling of Find Similar links. --- app/views/iqdb_queries/show.html.erb | 1 + app/views/posts/partials/show/_options.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/iqdb_queries/show.html.erb b/app/views/iqdb_queries/show.html.erb index b50d26274..ecbf4eb70 100644 --- a/app/views/iqdb_queries/show.html.erb +++ b/app/views/iqdb_queries/show.html.erb @@ -1,4 +1,5 @@ <% page_title "Similar Images Search" %> +<% noindex if params[:search].present? %>
diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb index 17c4df489..ae66430f2 100644 --- a/app/views/posts/partials/show/_options.html.erb +++ b/app/views/posts/partials/show/_options.html.erb @@ -13,7 +13,7 @@ <% end %>
  • - <%= link_to "Find similar", iqdb_queries_path(post_id: post.id) %> + <%= link_to "Find similar", iqdb_queries_path(post_id: post.id), ref: "nofollow" %>
  • <% if policy(post).visible? %>