Fix account avatar and header descriptions not being deleted when an account is deleted (#40621)
This commit is contained in:
1 parent
d33f07cf2d
commit
efef2275c7
1 file changed
+2
@@ -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