diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-30 22:03:46 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-30 22:03:46 -0500 |
commit | 3b276d268f8e49b897f16f490c78a5a5880c6216 (patch) | |
tree | bcb653e975ab223cf8d048778ab113489bf67b6d /app/services/activitypub/process_account_service.rb | |
parent | 60c449e1d77c6e11ced796a7e088038d80137de6 (diff) |
use a scheduled task to batch domain policy changes + revert `29643fd6` to avoid accidentally dosing servers when multiple users block a domain
Diffstat (limited to 'app/services/activitypub/process_account_service.rb')
-rw-r--r-- | app/services/activitypub/process_account_service.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/services/activitypub/process_account_service.rb b/app/services/activitypub/process_account_service.rb index dd19db485..c1c643ff0 100644 --- a/app/services/activitypub/process_account_service.rb +++ b/app/services/activitypub/process_account_service.rb @@ -27,7 +27,6 @@ class ActivityPub::ProcessAccountService < BaseService create_account end update_account - update_account_domain_blocks if is_new_account process_tags process_attachments else @@ -121,11 +120,6 @@ class ActivityPub::ProcessAccountService < BaseService VerifyAccountLinksWorker.perform_async(@account.id) end - def update_account_domain_blocks - return if @account.domain.nil? || @account.local? - UpdateAccountDomainBlocksWorker.perform_async(@account.id) - end - def actor_type if @json['type'].is_a?(Array) @json['type'].find { |type| ActivityPub::FetchRemoteAccountService::SUPPORTED_TYPES.include?(type) } |