about summary refs log tree commit diff
path: root/app/controllers/following_accounts_controller.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-12-30 19:13:02 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-12-30 19:13:02 +0100
commitb2f81060b75e5128279cd3f85f55de0982e8f35b (patch)
treef849b85d5117d9aa276681f26c93bafe4fedc7ef /app/controllers/following_accounts_controller.rb
parentbb27ca14ef5e2b0b3108c476a62a0e6d559e070a (diff)
Remove unused AccountRelationshipsPresenter call in public pages (#12734)
Those were used to show a “follow” or “unfollow” button on account grid on
public pages, but that got removed a while ago.
Diffstat (limited to 'app/controllers/following_accounts_controller.rb')
-rw-r--r--app/controllers/following_accounts_controller.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/following_accounts_controller.rb b/app/controllers/following_accounts_controller.rb
index 968de980d..fb1eaaa37 100644
--- a/app/controllers/following_accounts_controller.rb
+++ b/app/controllers/following_accounts_controller.rb
@@ -18,7 +18,6 @@ class FollowingAccountsController < ApplicationController
         next if @account.user_hides_network?
 
         follows
-        @relationships = AccountRelationshipsPresenter.new(follows.map(&:target_account_id), current_user.account_id) if user_signed_in?
       end
 
       format.json do