Progress
This commit is contained in:
@@ -22,8 +22,10 @@ class Api::V1::StatusesController < Api::BaseController
|
||||
render json: @status, serializer: REST::StatusSerializer
|
||||
end
|
||||
|
||||
# direct descendants only
|
||||
def comments
|
||||
descendants_results = @status.descendants(CONTEXT_LIMIT, current_account)
|
||||
descendants_results = @status.descendants(CONTEXT_LIMIT, current_account, nil, nil, 1)
|
||||
puts "descendants_results: " + descendants_results.inspect
|
||||
loaded_descendants = cache_collection(descendants_results, Status)
|
||||
|
||||
@context = Context.new(descendants: loaded_descendants)
|
||||
|
||||
Reference in New Issue
Block a user