From 2c1f7b2ece96c724f6230352974d4282ac51dfd5 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 4 May 2018 19:19:11 +0200 Subject: Better pagination for ActivityPub outbox (#7356) --- app/controllers/activitypub/collections_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/activitypub/collections_controller.rb') diff --git a/app/controllers/activitypub/collections_controller.rb b/app/controllers/activitypub/collections_controller.rb index 081914016..96bf901a7 100644 --- a/app/controllers/activitypub/collections_controller.rb +++ b/app/controllers/activitypub/collections_controller.rb @@ -22,7 +22,7 @@ class ActivityPub::CollectionsController < Api::BaseController end def set_statuses - @statuses = scope_for_collection.paginate_by_max_id(20, params[:max_id], params[:since_id]) + @statuses = scope_for_collection @statuses = cache_collection(@statuses, Status) end -- cgit