about summary refs log tree commit diff
path: root/app/controllers/settings
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-16 11:23:22 +0100
committerGitHub <noreply@github.com>2019-03-16 11:23:22 +0100
commit1c113fd72df18999de1d6f09fa3790dd1f715506 (patch)
tree6a2683eb7d63cca3e568f6f2786f77e606320bb1 /app/controllers/settings
parent8da5b8e6695e3bcca8eb4bca754faef83a6656eb (diff)
Add relationship manager UI (#10268)
Diffstat (limited to 'app/controllers/settings')
-rw-r--r--app/controllers/settings/follower_domains_controller.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/app/controllers/settings/follower_domains_controller.rb b/app/controllers/settings/follower_domains_controller.rb
deleted file mode 100644
index ce8ec985d..000000000
--- a/app/controllers/settings/follower_domains_controller.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-# frozen_string_literal: true
-
-class Settings::FollowerDomainsController < Settings::BaseController
-  layout 'admin'
-
-  before_action :authenticate_user!
-
-  def show
-    @account = current_account
-    @domains = current_account.followers.reorder(Arel.sql('MIN(follows.id) DESC')).group('accounts.domain').select('accounts.domain, count(accounts.id) as accounts_from_domain').page(params[:page]).per(10)
-  end
-
-  def update
-    domains = bulk_params[:select] || []
-
-    AfterAccountDomainBlockWorker.push_bulk(domains) do |domain|
-      [current_account.id, domain]
-    end
-
-    redirect_to settings_follower_domains_path, notice: I18n.t('followers.success', count: domains.size)
-  end
-
-  private
-
-  def bulk_params
-    params.permit(select: [])
-  end
-end