mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
if site path doesn't exist during a destroy, continue with destroy anyways
This commit is contained in:
parent
15230c5622
commit
a99e3cc330
1 changed files with 7 additions and 1 deletions
|
@ -438,7 +438,13 @@ class Site < Sequel::Model
|
|||
DB.transaction {
|
||||
owner.end_supporter_membership! if parent?
|
||||
FileUtils.mkdir_p File.join(DELETED_SITES_ROOT, self.class.sharding_dir(username))
|
||||
FileUtils.mv files_path, deleted_files_path
|
||||
|
||||
begin
|
||||
FileUtils.mv files_path, deleted_files_path
|
||||
rescue Errno::ENOENT => e
|
||||
# Must have been removed already?
|
||||
end
|
||||
|
||||
remove_all_tags
|
||||
#remove_all_events
|
||||
#Event.where(actioning_site_id: id).destroy
|
||||
|
|
Loading…
Add table
Reference in a new issue