Remove statuses from antenna timeline when blocked

This commit is contained in:
KMY 2023-08-20 11:43:19 +09:00
parent e336542063
commit 21e590c02b
4 changed files with 53 additions and 0 deletions

View file

@ -7,6 +7,7 @@ class AfterBlockService < BaseService
clear_home_feed!
clear_list_feeds!
clear_antenna_feeds!
clear_notifications!
clear_conversations!
end
@ -21,6 +22,10 @@ class AfterBlockService < BaseService
FeedManager.instance.clear_from_lists(@account, @target_account)
end
def clear_antenna_feeds!
FeedManager.instance.clear_from_antennas(@account, @target_account)
end
def clear_conversations!
AccountConversation.where(account: @account).where('? = ANY(participant_account_ids)', @target_account.id).in_batches.destroy_all
end