mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Merge branch 'master' of github.com:neocities/neocities
This commit is contained in:
commit
86e188f29f
1 changed files with 7 additions and 1 deletions
|
@ -447,7 +447,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