From 7e58303a8da90b31f4179695283d3ac19dfb09d1 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 24 Mar 2016 12:49:34 +0100 Subject: Limit Atom feeds to 20 items by default, add pagination by max_id (But there are no Atom feed pagination elements yet) --- app/views/accounts/show.atom.ruby | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/accounts/show.atom.ruby b/app/views/accounts/show.atom.ruby index e2ae57cc4..b7e3d2590 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) - @entries.order('id desc').each do |stream_entry| + @entries.each do |stream_entry| entry(xml, false) do include_entry xml, stream_entry end -- cgit