Fix default max_id query in paginate_by_max_id
This commit is contained in:
parent
12559b01ea
commit
082e1cbe5a
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class Api::AccountsController < ApiController
|
|||
end
|
||||
|
||||
def statuses
|
||||
@statuses = @account.statuses.with_includes.with_counters.paginate_by_max_id(20, params[:max_id])
|
||||
@statuses = @account.statuses.with_includes.with_counters.paginate_by_max_id(20, params[:max_id] || nil)
|
||||
end
|
||||
|
||||
def follow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue