Merge pull request #3653 from gdpelican/latest-rss-fix

Skip latest posts with no topic in rss
This commit is contained in:
Sam 2015-08-14 16:48:04 +10:00
commit 71fb065133
1 changed files with 1 additions and 1 deletions

View File

@ -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>