FIX: exclude empty posts from microdata schema for topic (#25198)
This commit is contained in:
parent
16b8476cb4
commit
9261500ea9
|
@ -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? %>
|
||||
<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'>
|
||||
<span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||
|
|
Loading…
Reference in New Issue