about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-17 16:36:10 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-17 16:36:10 +0200
commit8c0b19012bae203f41b75cf40d6baf121f67fdea (patch)
tree7dc72fd03f0d77d53875e8b44a85a47ec202050b /app/controllers
parente906677092ca2f38abd918436ea5967c096d555f (diff)
Fix #41, debug #42
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/follows_controller.rb2
1 files changed, 1 insertions, 1 deletions
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