From 75236b30d8368454bf4e898ce1e6819bc5138509 Mon Sep 17 00:00:00 2001 From: Natalie Tay Date: Mon, 15 Jul 2024 09:40:47 +0800 Subject: [PATCH] FIX: Exclude reply count on posts due to required Comment nesting (#27892) "Replies" in non-crawler view makes a request when clicked to get all replies, however this does not make sense in the crawler view where we load everything per post number. So the solution here is to exclude the reply number so we can avoid having to nest all replies in a post. --- app/views/topics/show.html.erb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 90f8f020515..ff894eefc9c 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -108,11 +108,6 @@ <%= post.like_count > 0 ? t('post.has_likes', count: post.like_count) : '' %> -
- - -
- <% if @topic_view.link_counts[post.id] && @topic_view.link_counts[post.id].filter { |l| l[:reflection] }.length > 0 %>
<% @topic_view.link_counts[post.id].each_with_index do |link, i| %>