about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-30 15:14:07 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-10-30 15:14:07 +0100
commitfa1cc2d05a12783e166f30bf7a0b3239ebccf732 (patch)
treee140b30a884f20b8efe0e45d713695b62ab07f6e /app/controllers
parentf10feb2e701ec2c07252be4dcc3bec44973650f9 (diff)
Limit returned followees/followers by API to 40 for now
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/v1/accounts_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/v1/accounts_controller.rb b/app/controllers/api/v1/accounts_controller.rb
index a74d6f979..715b9085c 100644
--- a/app/controllers/api/v1/accounts_controller.rb
+++ b/app/controllers/api/v1/accounts_controller.rb
@@ -14,12 +14,12 @@ class Api::V1::AccountsController < ApiController
   end
 
   def following
-    @accounts = @account.following
+    @accounts = @account.following.limit(40)
     render action: :index
   end
 
   def followers
-    @accounts = @account.followers
+    @accounts = @account.followers.limit(40)
     render action: :index
   end