Skip to content
Snippets Groups Projects
Commit c397acee authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Merge branch 'followable-owner' into 'master'

serialize deeply

See merge request !454
parents 83c9fa45 027b66d7
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,7 @@ class V1::UsersController < ApplicationController
is_current = (@user.id == current_user.id) unless current_user.nil?
return render status: :bad_request unless type.in? %w(User Collection)
w = @user.following(type, is_current)
return render json: w, include: '*.owner', root: 'follows', status: :ok if type=="Collection"
render json: w, root: 'follows', status: :ok
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment