FIX: exclude empty posts from microdata schema for topic (#25198)

This commit is contained in:
Ayke Halder 2024-01-12 08:17:56 +01:00 committed by GitHub
parent 16b8476cb4
commit 9261500ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@
<% end %> <% end %>
<% @topic_view.posts.each do |post| %> <% @topic_view.posts.each do |post| %>
<% if (u = post.user) %> <% if (u = post.user) && !post.hidden && post.cooked && !post.cooked.strip.empty? %>
<div id='post_<%= post.post_number %>' <%= post.is_first_post? ? "" : "itemprop='comment' itemscope itemtype='http://schema.org/Comment'".html_safe %> class='topic-body crawler-post'> <div id='post_<%= post.post_number %>' <%= post.is_first_post? ? "" : "itemprop='comment' itemscope itemtype='http://schema.org/Comment'".html_safe %> class='topic-body crawler-post'>
<div class='crawler-post-meta'> <div class='crawler-post-meta'>
<span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person">