Defer deletion of avatars to a background job

This commit is contained in:
Tom Hughes 2019-07-16 08:27:14 +01:00
parent f597780822
commit 905a7eadb6
2 changed files with 3 additions and 3 deletions

View file

@ -269,7 +269,7 @@ class User < ActiveRecord::Base
##
# delete a user - leave the account but purge most personal data
def delete
avatar.purge
avatar.purge_later
self.display_name = "user_#{id}"
self.description = ""