diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-24 16:39:58 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-24 16:39:58 -0500 |
commit | cefcad113031ce580121d33c489d33f59e459fc4 (patch) | |
tree | af6e202d39a56737a5a992a103068b6e4366921a /app/services | |
parent | 8f6e737f38c98bbe431c0c60a42208ba185d94e6 (diff) |
transparancy - log use of admin related method calls & activitypub auto-rejections to a logger account
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 |