From 068ce19ae2f12aa955a44c29bfd5b35f6a39fa08 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Sun, 12 Feb 2017 23:58:52 +0530 Subject: [PATCH] FEATURE: linked topics should be rendered under posts for crawlers --- app/views/topics/show.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index d064f79d864..b9c3c5bda86 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -60,6 +60,14 @@
+ <% 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? %> + <%=link[:title]%> +
+ <% end %> + <% end %> + <% end %> <% end %> <% end %>