about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-19 08:04:38 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:51 -0500
commit45e4449347879e79f2eaeaa576c144e63ff10f91 (patch)
tree9f0c3728a6a14250e60d61c26a250388a3bf408f
parent1fa6d6e16b2880e75da75a1c089be97f8bd41208 (diff)
clear status caches when someone is moderated force unlisted or force sensitive
-rw-r--r--app/services/block_domain_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/block_domain_service.rb b/app/services/block_domain_service.rb
index 154d00427..a9588e21f 100644
--- a/app/services/block_domain_service.rb
+++ b/app/services/block_domain_service.rb
@@ -38,6 +38,7 @@ class BlockDomainService < BaseService
         account.statuses.where(sensitive: false).in_batches.update_all(sensitive: true)
       end
     end
+    invalidate_association_caches!
   end
 
   def force_accounts_unlisted!
@@ -47,6 +48,7 @@ class BlockDomainService < BaseService
         account.statuses.with_public_visibility.in_batches.update_all(visibility: :unlisted)
       end
     end
+    invalidate_association_caches!
   end
 
   def silence_accounts!