mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 21:23:42 +01:00
55e1503522
* Add admin/instances index action * Add link to instances admin page * View lists instances * Instances, grouped by domain, ordered by count * Use Account.remote scope * Extract method: Account.by_domain_accounts
15 lines
266 B
Ruby
15 lines
266 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Admin
|
|
class InstancesController < BaseController
|
|
def index
|
|
@instances = ordered_instances.page(params[:page])
|
|
end
|
|
|
|
private
|
|
|
|
def ordered_instances
|
|
Account.remote.by_domain_accounts
|
|
end
|
|
end
|
|
end
|