FEATURE: linked topics should be rendered under posts for crawlers

This commit is contained in:
Arpit Jalan 2017-02-12 23:58:52 +05:30
parent 1dda998a4e
commit 068ce19ae2
1 changed files with 8 additions and 0 deletions

View File

@ -60,6 +60,14 @@
<meta itemprop='interactionCount' content='UserLikes:<%= post.like_count %>'>
<meta itemprop='interactionCount' content='UserComments:<%= post.reply_count %>'>
<hr>
<% if @topic_view.link_counts[post.id] && @topic_view.link_counts[post.id].length > 0 %>
<% @topic_view.link_counts[post.id].each do |link| %>
<% if link[:reflection] && link[:title].present? %>
<a href="<%=link[:url]%>"><%=link[:title]%></a>
<hr>
<% end %>
<% end %>
<% end %>
<% end %>
</div>
<% end %>