clear status caches when someone is moderated force unlisted or force sensitive

staging
multiple creatures 2019-05-19 08:04:38 -05:00
parent 1fa6d6e16b
commit 45e4449347
1 changed files with 2 additions and 0 deletions

View File

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