deprecate tag subscriptions with warnings
This commit is contained in:
@@ -22,6 +22,7 @@ class UserDeletion
|
||||
clear_user_settings
|
||||
remove_favorites
|
||||
clear_tag_subscriptions
|
||||
clear_saved_searches
|
||||
rename
|
||||
reset_password
|
||||
create_mod_action
|
||||
@@ -37,6 +38,10 @@ private
|
||||
TagSubscription.where(:creator_id => user.id).destroy_all
|
||||
end
|
||||
|
||||
def clear_saved_searches
|
||||
SavedSearch.where(user_id: user.id).destroy_all
|
||||
end
|
||||
|
||||
def clear_user_settings
|
||||
user.email = nil
|
||||
user.last_logged_in_at = nil
|
||||
|
||||
Reference in New Issue
Block a user