about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-21 13:43:03 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-21 13:43:03 -0500
commit6de7b8e02136898c1de19b2a9d6a5452e95b3586 (patch)
treedaa01b557ba768608336743ca18da89c879179f0 /app
parent1cf4d5a83dcc9a1b3d1bb556b40acf2828ee1241 (diff)
we don't need `invalidate_association_caches!`
Diffstat (limited to 'app')
-rw-r--r--app/services/block_domain_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/block_domain_service.rb b/app/services/block_domain_service.rb
index a9588e21f..4a1218e3f 100644
--- a/app/services/block_domain_service.rb
+++ b/app/services/block_domain_service.rb
@@ -38,7 +38,7 @@ class BlockDomainService < BaseService
         account.statuses.where(sensitive: false).in_batches.update_all(sensitive: true)
       end
     end
-    invalidate_association_caches!
+    invalidate_association_caches! unless @affected_status_ids.blank?
   end
 
   def force_accounts_unlisted!
@@ -48,7 +48,6 @@ class BlockDomainService < BaseService
         account.statuses.with_public_visibility.in_batches.update_all(visibility: :unlisted)
       end
     end
-    invalidate_association_caches!
   end
 
   def silence_accounts!