diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-05-10 21:45:32 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-05-10 21:45:32 +0200 |
commit | 7ac8bcf209cd2d72883ee3e5cfa7853620e417da (patch) | |
tree | c85cb56fe22a8172c82346e17d23392a45e0c741 /app/services | |
parent | fc8baba8cb26cdcb74f00a4c51c8a88f1ee3e7ac (diff) | |
parent | d279666bd4353ba39c41e3607db7fd6862844947 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/after_block_service.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/services/after_block_service.rb b/app/services/after_block_service.rb index 314919df8..899e84be4 100644 --- a/app/services/after_block_service.rb +++ b/app/services/after_block_service.rb @@ -6,6 +6,7 @@ class AfterBlockService < BaseService @target_account = target_account clear_home_feed! + clear_list_feeds! clear_notifications! clear_conversations! end @@ -16,6 +17,10 @@ class AfterBlockService < BaseService FeedManager.instance.clear_from_home(@account, @target_account) end + def clear_list_feeds! + FeedManager.instance.clear_from_lists(@account, @target_account) + end + def clear_conversations! AccountConversation.where(account: @account).where('? = ANY(participant_account_ids)', @target_account.id).in_batches.destroy_all end |