Browse Source

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

pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
82ef5c0461
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      app/controllers/admin/followers_controller.rb

+ 1
- 5
app/controllers/admin/followers_controller.rb 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

Loading…
Cancel
Save