we don't need `invalidate_association_caches!`

staging
multiple creatures 2019-07-21 13:43:03 -05:00
parent 1cf4d5a83d
commit 6de7b8e021
1 changed files with 1 additions and 2 deletions

View File

@ -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!