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