mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-27 02:54:19 +00:00
10f51c9886
* 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
12 lines
267 B
Ruby
12 lines
267 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AfterAccountDomainBlockWorker
|
|
include Sidekiq::Worker
|
|
|
|
def perform(account_id, domain)
|
|
AfterBlockDomainFromAccountService.new.call(Account.find(account_id), domain)
|
|
rescue ActiveRecord::RecordNotFound
|
|
true
|
|
end
|
|
end
|