Optimize follower_accounts and following_accounts (#2820)
This commit is contained in:
@ -4,4 +4,4 @@
|
||||
- else
|
||||
= render partial: 'accounts/grid_card', collection: accounts, as: :account, cached: true
|
||||
|
||||
= paginate accounts
|
||||
= paginate follows
|
||||
|
@ -6,4 +6,4 @@
|
||||
|
||||
= render 'accounts/header', account: @account
|
||||
|
||||
= render 'accounts/follow_grid', accounts: @accounts
|
||||
= render 'accounts/follow_grid', follows: @follows, accounts: @follows.map(&:account)
|
||||
|
@ -6,4 +6,4 @@
|
||||
|
||||
= render 'accounts/header', account: @account
|
||||
|
||||
= render 'accounts/follow_grid', accounts: @accounts
|
||||
= render 'accounts/follow_grid', follows: @follows, accounts: @follows.map(&:target_account)
|
||||
|
Reference in New Issue
Block a user