From ba4fb617123c7f4d5bda5240fa425ad978ab772c Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 25 Jan 2021 15:45:11 -0500 Subject: [PATCH] Fixed issue in account StatusesController pagination for cached timelines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fixed: - issue in account StatusesController pagination for cached timelines --- app/controllers/api/v1/accounts/statuses_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/accounts/statuses_controller.rb b/app/controllers/api/v1/accounts/statuses_controller.rb index a69e5462..8db23cd2 100644 --- a/app/controllers/api/v1/accounts/statuses_controller.rb +++ b/app/controllers/api/v1/accounts/statuses_controller.rb @@ -109,13 +109,13 @@ class Api::V1::Accounts::StatusesController < Api::BaseController end def next_path - if records_continue? && !current_account.nil? + if records_continue? api_v1_account_statuses_url pagination_params(max_id: pagination_max_id) end end def prev_path - unless @statuses.empty? || current_account.nil? + unless @statuses.empty? api_v1_account_statuses_url pagination_params(min_id: pagination_since_id) end end