mirror of
https://github.com/neocities/neocities.git
synced 2025-05-19 18:59:36 +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
|
@ -19,7 +19,8 @@ module Sequel
|
|||
# so this adds the filter for the first time the class' dataset is accessed for the new model.
|
||||
def dataset
|
||||
if @_is_deleted_filter_set.nil?
|
||||
@dataset.filter! is_deleted: false
|
||||
#KD: I turned this off because I think it's easier to do this manually.
|
||||
#@dataset.filter! is_deleted: false
|
||||
@_is_deleted_filter_set = true
|
||||
end
|
||||
super
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue