Small optimizations in Atom feeds

This commit is contained in:
Eugen Rochko
2016-03-21 10:31:20 +01:00
parent 19a259915e
commit 7e00a21ea6
5 changed files with 6 additions and 4 deletions

View File

@ -15,7 +15,7 @@ Nokogiri::XML::Builder.new do |xml|
link_hub xml, Rails.configuration.x.hub_url
link_salmon xml, api_salmon_url(@account.id)
@account.stream_entries.order('id desc').each do |stream_entry|
@entries.order('id desc').each do |stream_entry|
entry(xml, false) do
include_entry xml, stream_entry
end