Adjust noindex logic (#608)
* Add Google noindex to possible spam articles * Add further noindex conditions * Adjust noindex logic
This commit is contained in:
parent
76b9313e3a
commit
83afef4c74
1 changed files with 2 additions and 1 deletions
|
|
@ -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 %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue