Defer deletion of avatars to a background job
This commit is contained in:
parent
f597780822
commit
905a7eadb6
2 changed files with 3 additions and 3 deletions
|
@ -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 = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue