Fixed issue in account StatusesController pagination for cached timelines
• Fixed: - issue in account StatusesController pagination for cached timelines
This commit is contained in:
parent
4f3df89911
commit
ba4fb61712
|
@ -109,13 +109,13 @@ class Api::V1::Accounts::StatusesController < Api::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def next_path
|
def next_path
|
||||||
if records_continue? && !current_account.nil?
|
if records_continue?
|
||||||
api_v1_account_statuses_url pagination_params(max_id: pagination_max_id)
|
api_v1_account_statuses_url pagination_params(max_id: pagination_max_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def prev_path
|
def prev_path
|
||||||
unless @statuses.empty? || current_account.nil?
|
unless @statuses.empty?
|
||||||
api_v1_account_statuses_url pagination_params(min_id: pagination_since_id)
|
api_v1_account_statuses_url pagination_params(min_id: pagination_since_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue