From 7e00a21ea6f76f8167f1070fbfe231bbd65c6cad Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 21 Mar 2016 10:31:20 +0100 Subject: Small optimizations in Atom feeds --- app/views/accounts/show.atom.ruby | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/accounts') diff --git a/app/views/accounts/show.atom.ruby b/app/views/accounts/show.atom.ruby index eaa4c63b1..e2ae57cc4 100644 --- a/app/views/accounts/show.atom.ruby +++ b/app/views/accounts/show.atom.ruby @@ -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 -- cgit