From 509c18eb139ead0d2e2f02f580ef04b28d874f48 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 8 Sep 2016 02:40:51 +0200 Subject: Fix local follows, 404 in logs --- app/controllers/api/accounts_controller.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/controllers/api') diff --git a/app/controllers/api/accounts_controller.rb b/app/controllers/api/accounts_controller.rb index 8c4da5270..4a4431b2d 100644 --- a/app/controllers/api/accounts_controller.rb +++ b/app/controllers/api/accounts_controller.rb @@ -19,12 +19,7 @@ class Api::AccountsController < ApiController end def follow - if @account.local? - @follow = current_user.account.follow!(@account) - else - @follow = FollowService.new.(current_user.account, @account.acct) - end - + @follow = FollowService.new.(current_user.account, @account.acct) render action: :show end -- cgit