From 8405ec2831322314b8145e7908f025ba6dee4881 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Mon, 3 Apr 2023 14:36:47 +0530 Subject: [PATCH] FEATURE: use "Comment" schema type for post replies. (#20932) Previously, we used the schema type "DiscussionForumPosting" for all the posts including replies. This is not recommended as per Google search experts. This commit changes the schema type to "Comment" for replies. --- app/views/topics/show.html.erb | 151 ++++++++++++------------ spec/views/topics/show.html.erb_spec.rb | 17 +++ 2 files changed, 92 insertions(+), 76 deletions(-) diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 60670a3cd52..2df22c41421 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -34,85 +34,84 @@ <%= server_plugin_outlet "topic_header" %> <%- if include_crawler_content? %> - - <% @topic_view.posts.each_with_index do |post, idx| %> - <% if (u = post.user) %> -
-