about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-25 01:35:49 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-25 01:35:49 -0500
commit0d17c2bf2e5245245935778588fd642a024aa8d4 (patch)
tree42c3195a8849e6271fbf5db7590d1a056b73a885 /app/models
parent234fae09ad2e789a478858362320e6a3f73b960f (diff)
add all `ActionLog`-able admin & moderator actions to logger
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 8d5e5ee1a..efa6b8fbd 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -212,7 +212,6 @@ class Account < ApplicationRecord
   end
 
   def force_unlisted!
-    LogWorker.perform_async("\xf0\x9f\x93\xb5 Forced the media of account '#{@account.acct}' to be unlisted.")
     transaction do
       update!(force_unlisted: true)
       Status.where(account_id: id, visibility: :public).in_batches.update_all(visibility: :unlisted)
@@ -220,7 +219,6 @@ class Account < ApplicationRecord
   end
 
   def force_sensitive!
-    LogWorker.perform_async("\xf0\x9f\x94\x9e Forced the media of account '#{@account.acct}' to be marked sensitive.")
     transaction do
       update!(force_sensitive: true)
       Status.where(account_id: id, sensitive: false).in_batches.update_all(sensitive: true)
@@ -228,7 +226,6 @@ class Account < ApplicationRecord
   end
 
   def allow_public!
-    LogWorker.perform_async("\xf0\x9f\x86\x97 No longer forcing the media of account '#{@account.acct}' to be marked sensitive.")
     update!(force_unlisted: false)
   end
 
@@ -243,12 +240,10 @@ class Account < ApplicationRecord
   def silence!(date = nil)
     date ||= Time.now.utc
     update!(silenced_at: date)
-    LogWorker.perform_async("\xf0\x9f\x94\x87 Silenced account '#{@account.acct}'.")
   end
 
   def unsilence!
     update!(silenced_at: nil)
-    LogWorker.perform_async("\xf0\x9f\x94\x8a Unsilenced account '#{@account.acct}'.")
   end
 
   def suspended?