Remove statuses from antenna timeline when blocked
This commit is contained in:
parent
e336542063
commit
21e590c02b
4 changed files with 53 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue