mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-02 03:28:46 -05:00
Fix account avatar and header descriptions not being deleted when an account is deleted (#40621)
This commit is contained in:
@@ -253,6 +253,8 @@ class DeleteAccountService < BaseService
|
||||
@account.also_known_as = []
|
||||
@account.avatar.destroy
|
||||
@account.header.destroy
|
||||
@account.avatar_description = ''
|
||||
@account.header_description = ''
|
||||
@account.save!
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user