about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-22 21:53:33 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-22 21:53:33 +0100
commit082e1cbe5a6bcff291e0fe96260ca8920776a18e (patch)
tree8fe26747c88ff2b70e961f715f72958e5195f08e /app/controllers/api
parent12559b01eae408c0f3e820ef9c6bc6e356ab889a (diff)
Fix default max_id query in paginate_by_max_id
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/accounts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/accounts_controller.rb b/app/controllers/api/accounts_controller.rb
index 5bac98f81..8c4da5270 100644
--- a/app/controllers/api/accounts_controller.rb
+++ b/app/controllers/api/accounts_controller.rb
@@ -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