about summary refs log tree commit diff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-01-03 06:40:16 +0100
committerGitHub <noreply@github.com>2019-01-03 06:40:16 +0100
commit82ef5c0461509cbc2ada01e6e124218a030c39df (patch)
tree446eb4c326e62795071c238a171b081aa0ed1d51 /app/controllers/admin
parent5efedb5d5e071dd419be276f8ede93dc8ecfe3ce (diff)
Fix list of local followers showing remote followers in admin UI (#9700)
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/followers_controller.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/admin/followers_controller.rb b/app/controllers/admin/followers_controller.rb
index 819628b20..d826f47c5 100644
--- a/app/controllers/admin/followers_controller.rb
+++ b/app/controllers/admin/followers_controller.rb
@@ -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