diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-06-09 22:46:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-09 22:46:54 +0200 |
commit | 10f51c9886123982bc9f2a95fba39dd1f24b9a05 (patch) | |
tree | 16be79ea33b963008b9dada14d4454062bf97b96 /app/workers/soft_block_domain_followers_worker.rb | |
parent | 91e5d9f8af3a06c329de4bd603dc904a2a297e15 (diff) |
Fix domain hiding logic (#7765)
* Send rejections to followers when user hides domain they're on * Use account domain blocks for "authorized followers" action Replace soft-blocking (block & unblock) behaviour with follow rejection * Split sync and async work of account domain blocking Do not create domain block when removing followers by domain, that is probably unexpected from the user's perspective. * Adjust confirmation message for domain block * yarn manage:translations
Diffstat (limited to 'app/workers/soft_block_domain_followers_worker.rb')
-rw-r--r-- | app/workers/soft_block_domain_followers_worker.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/workers/soft_block_domain_followers_worker.rb b/app/workers/soft_block_domain_followers_worker.rb deleted file mode 100644 index 85445c7fb..000000000 --- a/app/workers/soft_block_domain_followers_worker.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -class SoftBlockDomainFollowersWorker - include Sidekiq::Worker - - sidekiq_options queue: 'pull' - - def perform(account_id, domain) - followers_id = Account.find(account_id).followers.where(domain: domain).pluck(:id) - SoftBlockWorker.push_bulk(followers_id) do |follower_id| - [account_id, follower_id] - end - end -end |