0
0
Fork 0
This commit is contained in:
Eugen Rochko 2016-09-17 16:36:10 +02:00
parent e906677092
commit 8c0b19012b
4 changed files with 27 additions and 7 deletions

View file

@ -7,7 +7,7 @@ class Api::FollowsController < ApiController
raise ActiveRecord::RecordNotFound
end
@follow = FollowService.new.(current_user.account, params[:uri])
@account = FollowService.new.(current_user.account, params[:uri]).try(:target_account)
render action: :show
end
end