about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-21 10:31:20 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-21 10:31:20 +0100
commit7e00a21ea6f76f8167f1070fbfe231bbd65c6cad (patch)
treef9dc54efab6e4fc905934786e468f14320fe4277 /app/views
parent19a259915eedcdff8c1e82f3b99a6249010b4b30 (diff)
Small optimizations in Atom feeds
Diffstat (limited to 'app/views')
-rw-r--r--app/views/accounts/show.atom.ruby2
1 files changed, 1 insertions, 1 deletions
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