Skip to content
Browse files

fix rss author name

  • Loading branch information...
1 parent a670899 commit 26574540c988e4de9feb6754411a067e282776c5 huangzg committed Aug 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/topics/index.rss.builder
View
2 app/views/topics/index.rss.builder
@@ -13,7 +13,7 @@ xml.rss :version => "2.0" do
xml.cdata! format_text(topic.content)
end
xml.pubDate topic.created_at.to_s(:rfc822)
- xml.author topic.user.profile.name
+ xml.author topic.user.profile.name.present? ? topic.user.profile.name : topic.user.name
xml.link topic_url(topic, :page => topic.last_page)
xml.guid topic_url(topic)
if topic.tags.present?

0 comments on commit 2657454

Please sign in to comment.
Something went wrong with that request. Please try again.