mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 08:41:12 +01:00
Clean up notification requests when deleting accounts (#29693)
This commit is contained in:
parent
1df00d4e76
commit
75f34b80a8
1 changed files with 1 additions and 0 deletions
|
@ -185,6 +185,7 @@ class DeleteAccountService < BaseService
|
||||||
# polymorphically associated notifications generated by this account
|
# polymorphically associated notifications generated by this account
|
||||||
|
|
||||||
Notification.where(from_account: @account).in_batches.delete_all
|
Notification.where(from_account: @account).in_batches.delete_all
|
||||||
|
NotificationRequest.where(from_account: @account).in_batches.delete_all
|
||||||
end
|
end
|
||||||
|
|
||||||
def purge_favourites!
|
def purge_favourites!
|
||||||
|
|
Loading…
Reference in a new issue