FIX: remove like_count and <hr> tag from post crawler layout (#7413)

FIX: remove like_count and


tag from post crawler layout (#7413)
  • show likes value in crawler view if count is > 0

  • remove


    since horizontal line is already provided by css - this removes one of 2 horizontal lines in post crawler view
diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb
index 78bb29d..6330026 100644
--- a/app/views/topics/show.html.erb
+++ b/app/views/topics/show.html.erb
@@ -73,9 +73,8 @@
       <meta itemprop='interactionCount' content='UserComments:<%= post.reply_count %>'>
       <meta itemprop='headline' content='<%= @topic_view.title %>'>
       <div class='clearfix'>
-        <span class='post-likes'><%= t('post.has_likes', count: post.like_count) %></span>
+        <span class='post-likes'><%= post.like_count > 0 ? t('post.has_likes', count: post.like_count) : '' %></span>
       </div>
-      <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? %>

GitHub sha: 3658be42