Adjust noindex logic (#608)

* Add Google noindex to possible spam articles

* Add further noindex conditions

* Adjust noindex logic
This commit is contained in:
Ben Halpern 2018-07-21 11:32:41 -04:00 committed by GitHub
parent 76b9313e3a
commit 83afef4c74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,8 @@
<meta property="og:image" content="<%= cloud_social_image(@article) %>" />
<meta name="twitter:image:src" content="<%= cloud_social_image(@article) %>">
<% end %>
<% if (@article.positive_reactions_count < 9 && @article.user.comments_count < 1) || @article.featured_number < 1500000000 %>
<% if (@article.positive_reactions_count < 8 && @article.user.comments_count < 1 && !@article.featured) ||
@article.featured_number < 1500000000 %>
<meta name="googlebot" content="noindex">
<% end %>
<% end %>