about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-21 23:18:28 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-21 23:18:28 +0200
commitc0e9603c921b66b927f9380968c70ac89253f30c (patch)
tree995e7f89759c550d91abd4af9eabf162943fa6aa /app/controllers/api
parentd709151781ae67290456a1fe7c1bd1346254cd8c (diff)
Fix #50 - Order ancestors/descendants by tree path
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/statuses_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/statuses_controller.rb b/app/controllers/api/statuses_controller.rb
index a4b183ef1..f68f298d8 100644
--- a/app/controllers/api/statuses_controller.rb
+++ b/app/controllers/api/statuses_controller.rb
@@ -8,8 +8,8 @@ class Api::StatusesController < ApiController
 
   def context
     @status      = Status.find(params[:id])
-    @ancestors   = @status.ancestors.with_includes.with_counters.to_a
-    @descendants = @status.descendants.with_includes.with_counters.to_a
+    @ancestors   = @status.ancestors
+    @descendants = @status.descendants
   end
 
   def create