1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Clean up notification requests when deleting accounts (#29693)

This commit is contained in:
Claire 2024-03-21 15:12:26 +01:00 committed by GitHub
parent 1df00d4e76
commit 75f34b80a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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!