Clean up notification requests when deleting accounts (#29693)

essem/emoji-reactions-plus-upstream
Claire 2 months ago committed by GitHub
parent 1df00d4e76
commit 75f34b80a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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!

Loading…
Cancel
Save