diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-17 16:36:10 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-17 16:36:10 +0200 |
commit | 8c0b19012bae203f41b75cf40d6baf121f67fdea (patch) | |
tree | 7dc72fd03f0d77d53875e8b44a85a47ec202050b /app/controllers | |
parent | e906677092ca2f38abd918436ea5967c096d555f (diff) |
Fix #41, debug #42
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/follows_controller.rb | 2 |
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 |