diff --git a/app/services/after_block_service.rb b/app/services/after_block_service.rb index 899e84be44f18b..f0f836a545b229 100644 --- a/app/services/after_block_service.rb +++ b/app/services/after_block_service.rb @@ -7,6 +7,7 @@ def call(account, target_account) clear_home_feed! clear_list_feeds! + clear_notification_requests! clear_notifications! clear_conversations! end @@ -28,4 +29,8 @@ def clear_conversations! def clear_notifications! Notification.where(account: @account).where(from_account: @target_account).in_batches.delete_all end + + def clear_notification_requests! + NotificationRequest.where(account: @account, from_account: @target_account).destroy_all + end end