mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51: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
|
@ -6,7 +6,8 @@ end
|
|||
|
||||
get '/site/:username/?' do |username|
|
||||
site = Site[username: username]
|
||||
not_found if site.nil? || site.is_banned
|
||||
# TODO: There should probably be a "this site was deleted" page.
|
||||
not_found if site.nil? || site.is_banned || site.is_deleted
|
||||
|
||||
@title = site.title
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue