Skip to content

Commit

Permalink
Added the author to the blog rss feed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Youch committed Jul 28, 2010
1 parent cc7849d commit 8dcb3e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions vendor/modules/blog/app/models/blog/rss_handler.rb
Expand Up @@ -36,6 +36,7 @@ def get_feed
:published_at => post.published_at.to_s(:rfc822),
:description => replace_relative_urls(@options.full ? post.body_content : post.preview)
}
item[:author] = post.author unless post.author.blank?
post.blog_categories.each do |cat|
item[:categories] ||= []
item[:categories] << cat.name
Expand Down
3 changes: 3 additions & 0 deletions vendor/modules/feed/app/views/feed/rss/_feed.rxml
Expand Up @@ -14,6 +14,9 @@ xml.channel do
xml.title item[:title]
xml.link item[:link]
xml.guid item[:guid]
if item[:author]
xml.author item[:author]
end
if item[:categories]
item[:categories].each do |cat|
xml.category cat
Expand Down

0 comments on commit 8dcb3e2

Please sign in to comment.