Limit Atom feeds to 20 items by default, add pagination by max_id

(But there are no Atom feed pagination elements yet)
This commit is contained in:
Eugen Rochko 2016-03-24 12:49:34 +01:00
parent c8999a116e
commit 7e58303a8d
3 changed files with 4 additions and 3 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)
@entries.order('id desc').each do |stream_entry|
@entries.each do |stream_entry|
entry(xml, false) do
include_entry xml, stream_entry
end