diff options
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/block_domain_service.rb | 1 | ||||
-rw-r--r-- | app/services/suspend_account_service.rb | 2 | ||||
-rw-r--r-- | app/services/unblock_domain_service.rb | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/app/services/block_domain_service.rb b/app/services/block_domain_service.rb index 4a1218e3f..5158f6793 100644 --- a/app/services/block_domain_service.rb +++ b/app/services/block_domain_service.rb @@ -5,6 +5,7 @@ class BlockDomainService < BaseService def call(domain_block) @domain_block = domain_block + LogWorker.perform_async("\xf0\x9f\x9a\xab Applying #{@domain_block.severity}#{@domain_block.force_sensitive? ? " and force sensitive media" : ''}#{@domain_block.reject_media? ? " and reject media" : ''} policy on domain '#{blocked_domain}'.") process_domain_block! end diff --git a/app/services/suspend_account_service.rb b/app/services/suspend_account_service.rb index 86c7ac137..c38e6c814 100644 --- a/app/services/suspend_account_service.rb +++ b/app/services/suspend_account_service.rb @@ -40,6 +40,8 @@ class SuspendAccountService < BaseService @account = account @options = options + LogWorker.perform_async("\xf0\x9f\x97\x91\xef\xb8\x8f Suspending account '#{@account.acct}'.") + reject_follows! purge_user! purge_profile! diff --git a/app/services/unblock_domain_service.rb b/app/services/unblock_domain_service.rb index eceecd6d7..58b33a7f3 100644 --- a/app/services/unblock_domain_service.rb +++ b/app/services/unblock_domain_service.rb @@ -5,6 +5,7 @@ class UnblockDomainService < BaseService def call(domain_block) @domain_block = domain_block + LogWorker.perform_async("\xf0\x9f\x86\x97 Reset policy on domain '#{@domain_block.domain}'.") process_retroactive_updates domain_block.destroy end |