mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 12:23:36 +08:00
Skip latest posts with no topic in rss
This commit is contained in:
parent
6711d12f68
commit
9068f9f9bf
|
@ -7,7 +7,7 @@
|
|||
<link><%= @link %></link>
|
||||
<description><%= @description %></description>
|
||||
<% @posts.each do |post| %>
|
||||
<% next unless post.user %>
|
||||
<% next unless post.user && post.topic %>
|
||||
<item>
|
||||
<title><%= post.topic.title %></title>
|
||||
<dc:creator><![CDATA[<%= "@#{post.user.username}#{" #{post.user.name}" if (post.user.name.present? && SiteSetting.enable_names?)}" -%>]]></dc:creator>
|
||||
|
|
Loading…
Reference in New Issue
Block a user