diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-10 04:44:26 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-10 04:52:56 -0500 |
commit | 346aa6566206c6a86371883e736984d1a14012dd (patch) | |
tree | 4166ab8422ccf490deba3376bc4a1d32cb62926a /app/services/unallow_domain_service.rb | |
parent | 4b97e1cb4e06b7e3afefb39b7f774de9160fca02 (diff) |
[Moderation, Privacy] Ask remote servers to purge local account content when defederating
Diffstat (limited to 'app/services/unallow_domain_service.rb')
-rw-r--r-- | app/services/unallow_domain_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/unallow_domain_service.rb b/app/services/unallow_domain_service.rb index fc5260761..0d2d8f254 100644 --- a/app/services/unallow_domain_service.rb +++ b/app/services/unallow_domain_service.rb @@ -4,7 +4,7 @@ class UnallowDomainService < BaseService include DomainControlHelper def call(domain_allow) - suspend_accounts!(domain_allow.domain) if whitelist_mode? + suspend_accounts!(domain_allow.domain) domain_allow.destroy end @@ -12,6 +12,7 @@ class UnallowDomainService < BaseService private def suspend_accounts!(domain) + DomainDefederationWorker.perform_async(domain) Account.where(domain: domain).in_batches.update_all(suspended_at: Time.now.utc) AfterUnallowDomainWorker.perform_async(domain) end |