lib/nitro/builder/rss.rb in nitro-0.19.0 vs lib/nitro/builder/rss.rb in nitro-0.20.0

- old
+ new

@@ -42,11 +42,11 @@ channel.link = c[:link] if c[:link] for obj in objects item = RSS::Rss::Channel::Item.new item.title = obj.title if obj.respond_to?(:title) - item.description = Glue::StringUtils.head(obj.body, 256) if obj.respond_to?(:body) - item.link = "#{c[:base]}/#{obj.view_uri}" if obj.respond_to?(:view_uri) +# item.description = CGI.escape(Glue::StringUtils.head(obj.body, 256)) if obj.respond_to?(:body) + item.link = "#{c[:base]}/#{obj.to_href}" if obj.respond_to?(:to_href) channel.items << item end rss = RSS::Rss.new '0.9' rss.channel = channel