瀏覽代碼

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.
master^2
ThibG 4 年之前
committed by Eugen Rochko
父節點
當前提交
b2f81060b7
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. +0
    -1
      app/controllers/follower_accounts_controller.rb
  2. +0
    -1
      app/controllers/following_accounts_controller.rb

+ 0
- 1
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


+ 0
- 1
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


Loading…
取消
儲存