From 8c0b19012bae203f41b75cf40d6baf121f67fdea Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 17 Sep 2016 16:36:10 +0200 Subject: Fix #41, debug #42 --- app/controllers/api/follows_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/api/follows_controller.rb') diff --git a/app/controllers/api/follows_controller.rb b/app/controllers/api/follows_controller.rb index 604e65565..dbd44cc54 100644 --- a/app/controllers/api/follows_controller.rb +++ b/app/controllers/api/follows_controller.rb @@ -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 -- cgit