Fixed issue in account StatusesController pagination for cached timelines

• Fixed:
- issue in account StatusesController pagination for cached timelines
This commit is contained in:
mgabdev 2021-01-25 15:45:11 -05:00
parent 4f3df89911
commit ba4fb61712
1 changed files with 2 additions and 2 deletions

View File

@ -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