mirror of
https://github.com/neocities/neocities.git
synced 2025-07-22 02:26:07 +02:00
switch to manual is_delete checking to prevent derpie errors from sites deleting
This commit is contained in:
parent
0552b4e9b7
commit
af2b7a3f86
5 changed files with 8 additions and 16 deletions
|
@ -220,6 +220,7 @@ class Site < Sequel::Model
|
|||
site = get_with_identifier username_or_email
|
||||
|
||||
return false if site.nil?
|
||||
return false if site.is_deleted
|
||||
site.valid_password? plaintext
|
||||
end
|
||||
|
||||
|
@ -385,8 +386,8 @@ class Site < Sequel::Model
|
|||
|
||||
FileUtils.mv files_path, File.join(DELETED_SITES_ROOT, username)
|
||||
remove_all_tags
|
||||
remove_all_events
|
||||
Event.where(actioning_site_id: id).destroy
|
||||
#remove_all_events
|
||||
#Event.where(actioning_site_id: id).destroy
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue