about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-13 15:38:12 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-13 15:38:45 +0100
commit2d8a4c4390acba310972d7dac21b93c4e2ac9f4e (patch)
treef6bdaf2893e5078dbd35527fd5aefbbf8e6ed9e5 /app/views
parent63b3cb37db530d6b160618598a6e9a9e6b0eb9ab (diff)
Add "next" link to Atom feeds
Diffstat (limited to 'app/views')
-rw-r--r--app/views/accounts/show.atom.ruby1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/accounts/show.atom.ruby b/app/views/accounts/show.atom.ruby
index a22568396..3832b8bdc 100644
--- a/app/views/accounts/show.atom.ruby
+++ b/app/views/accounts/show.atom.ruby
@@ -14,6 +14,7 @@ Nokogiri::XML::Builder.new do |xml|
 
     link_alternate xml, TagManager.instance.url_for(@account)
     link_self      xml, account_url(@account, format: 'atom')
+    link_next      xml, account_url(@account, format: 'atom', max_id: @entries.last.id) if @entries.size == 20
     link_hub       xml, api_push_url
     link_salmon    xml, api_salmon_url(@account.id)