Clean up notification requests when deleting accounts (#29693)

This commit is contained in:
Claire authored and GitHub committed 2024-03-21 14:12:26 +00:00
1 parent 1df00d4e76
commit 75f34b80a8
1 file changed
+1
+1
View File
@@ -185,6 +185,7 @@ class DeleteAccountService < BaseService
# polymorphically associated notifications generated by this account
Notification.where(from_account: @account).in_batches.delete_all
NotificationRequest.where(from_account: @account).in_batches.delete_all
end
def purge_favourites!