From: ThibG Date: Mon, 30 Dec 2019 18:13:02 +0000 (+0100) Subject: Remove unused AccountRelationshipsPresenter call in public pages (#12734) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=b2f81060b75e5128279cd3f85f55de0982e8f35b;p=mastodon.git 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. --- diff --git a/app/controllers/follower_accounts_controller.rb b/app/controllers/follower_accounts_controller.rb index 705ff4122..ef183eca7 100644 --- a/app/controllers/follower_accounts_controller.rb +++ b/app/controllers/follower_accounts_controller.rb @@ -18,7 +18,6 @@ class FollowerAccountsController < ApplicationController next if @account.user_hides_network? follows - @relationships = AccountRelationshipsPresenter.new(follows.map(&:account_id), current_user.account_id) if user_signed_in? end format.json do 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