Explorar el Código

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

master
Eugen Rochko hace 5 años
committed by GitHub
padre
commit
82ef5c0461
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. +1
    -5
      app/controllers/admin/followers_controller.rb

+ 1
- 5
app/controllers/admin/followers_controller.rb Ver fichero

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

Cargando…
Cancelar
Guardar