mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
FIX: Don't abort PurgeInactive if they have posts. Just skip.
This commit is contained in:
parent
7e3eaf5b02
commit
4745eca4ad
1 changed files with 1 additions and 1 deletions
|
@ -887,7 +887,7 @@ class User < ActiveRecord::Base
|
|||
to_destroy.each do |u|
|
||||
begin
|
||||
destroyer.destroy(u, context: I18n.t(:purge_reason))
|
||||
rescue Discourse::InvalidAccess
|
||||
rescue Discourse::InvalidAccess, UserDestroyer::PostsExistError
|
||||
# if for some reason the user can't be deleted, continue on to the next one
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue