1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

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.
This commit is contained in:
ThibG 2019-12-30 19:13:02 +01:00 committed by Eugen Rochko
parent bb27ca14ef
commit b2f81060b7
2 changed files with 0 additions and 2 deletions

View file

@ -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

View file

@ -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