about summary refs log tree commit diff
path: root/app/controllers/api/v1
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-15 17:33:41 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-15 17:33:41 +0100
commit4f07fb1f0aee6d37d8b3c5fe0088cf36b3926372 (patch)
treeac2eb444dab54dbb84a9e712149d280088441a3d /app/controllers/api/v1
parentfdc17bea58f210f62ac0d9e836b68e84c6dbd15c (diff)
Fix #144 - Filter statuses from blocked users out of ancestors/descendants results
Diffstat (limited to 'app/controllers/api/v1')
-rw-r--r--app/controllers/api/v1/statuses_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb
index e1a417129..53578b2f7 100644
--- a/app/controllers/api/v1/statuses_controller.rb
+++ b/app/controllers/api/v1/statuses_controller.rb
@@ -12,7 +12,7 @@ class Api::V1::StatusesController < ApiController
   end
 
   def context
-    @context = OpenStruct.new(ancestors: @status.ancestors, descendants: @status.descendants)
+    @context = OpenStruct.new(ancestors: @status.ancestors(current_account), descendants: @status.descendants(current_account))
     set_maps([@status] + @context[:ancestors] + @context[:descendants])
   end