seo: prevent crawlers from crawling /posts/:id/favorites.

This commit is contained in:
evazion
2021-12-09 23:47:52 -06:00
parent 4021ddb579
commit bf022e858a
5 changed files with 7 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
<% end %>
<span class="post-score">
<%= link_to post.score, post_votes_path(search: { post_id: post.id }, variant: :compact) %>
<%= link_to post.score, post_votes_path(search: { post_id: post.id }, variant: :compact), rel: "nofollow" %>
</span>
<% if current_user.is_anonymous? %>