mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix site create bug
This commit is contained in:
parent
45834176c1
commit
3f57e452ca
1 changed files with 1 additions and 0 deletions
|
@ -310,6 +310,7 @@ class Site < Sequel::Model
|
|||
return false if ENV['RACK_ENV'] == 'production' && ip == '127.0.0.1'
|
||||
return false if ip.blank?
|
||||
return true if Site.where(is_banned: true).
|
||||
where(ip: ip).
|
||||
where(['updated_at > ?', Time.now-BANNED_TIME]).
|
||||
first
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue