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/defederate_domain_service.rb | |
parent | 4b97e1cb4e06b7e3afefb39b7f774de9160fca02 (diff) |
[Moderation, Privacy] Ask remote servers to purge local account content when defederating
Diffstat (limited to 'app/services/defederate_domain_service.rb')
-rw-r--r-- | app/services/defederate_domain_service.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/services/defederate_domain_service.rb b/app/services/defederate_domain_service.rb new file mode 100644 index 000000000..d40f88e3f --- /dev/null +++ b/app/services/defederate_domain_service.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class DefederateDomainService < BaseService + def call(domains) + return if domains.blank? + + Account.local.find_each do |account| + DefederateAccountService.new.call(account, domains) + end + end +end |