0
0
Fork 0

Move pagination_max_id and pagination_since_id into api/base controller (#28844)

This commit is contained in:
Matt Jankowski 2024-03-13 04:51:44 -04:00 committed by GitHub
parent 01b624c4a0
commit 9754967d5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 52 additions and 132 deletions

View file

@ -51,11 +51,7 @@ class Api::V1::Accounts::StatusesController < Api::BaseController
@statuses.size == limit_param(DEFAULT_STATUSES_LIMIT)
end
def pagination_max_id
@statuses.last.id
end
def pagination_since_id
@statuses.first.id
def pagination_collection
@statuses
end
end