Do not fail over missing user, when building rss feed.
This commit is contained in:
parent
71324ce5db
commit
9b03ac9a7c
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ xml.rss :version => "2.0" do
|
|||
xml.item do
|
||||
xml.title page.title
|
||||
xml.description page.diff, :type => "html"
|
||||
xml.author User.find(page.updated_by).display
|
||||
xml.author User.find_by_id(page.updated_by).try(:display)
|
||||
xml.pubDate page.updated_at.to_s(:rfc822)
|
||||
xml.link wiki_page_path(page.permalink)
|
||||
xml.guid page.updated_at.to_i
|
||||
|
|
Loading…
Reference in a new issue