Fix list of local followers showing remote followers in admin UI (#9700)

lolsob-rspec
Eugen Rochko 2019-01-03 06:40:16 +01:00 committed by GitHub
parent cd51dfdd76
commit 93f560423b
1 changed files with 1 additions and 5 deletions

View File

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