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:
parent
c8999a116e
commit
7e58303a8d
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue