mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 18:45:41 +01:00
Fix list of local followers showing remote followers in admin UI (#9700)
This commit is contained in:
parent
5efedb5d5e
commit
82ef5c0461
1 changed files with 1 additions and 5 deletions
|
@ -8,15 +8,11 @@ module Admin
|
|||
|
||||
def index
|
||||
authorize :account, :index?
|
||||
@followers = followers.recent.page(params[:page]).per(PER_PAGE)
|
||||
@followers = @account.followers.local.recent.page(params[:page]).per(PER_PAGE)
|
||||
end
|
||||
|
||||
def set_account
|
||||
@account = Account.find(params[:account_id])
|
||||
end
|
||||
|
||||
def followers
|
||||
Follow.includes(:account).where(target_account: @account)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue