mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:24:38 +08:00
FIX: exclude empty posts from microdata schema for topic (#25198)
This commit is contained in:
parent
16b8476cb4
commit
9261500ea9
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user