From 9261500ea904f931d13ecfae650c24570c647283 Mon Sep 17 00:00:00 2001 From: Ayke Halder Date: Fri, 12 Jan 2024 08:17:56 +0100 Subject: [PATCH] FIX: exclude empty posts from microdata schema for topic (#25198) --- app/views/topics/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index a6bdff2eccd..f798ba319ce 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -60,7 +60,7 @@ <% end %> <% @topic_view.posts.each do |post| %> - <% if (u = post.user) %> + <% if (u = post.user) && !post.hidden && post.cooked && !post.cooked.strip.empty? %>
class='topic-body crawler-post'>