mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 09:11:28 +02:00
Update gems, modernize test stack, fix flaky tests
This commit is contained in:
parent
e223b687b2
commit
69c32d17ed
14 changed files with 583 additions and 578 deletions
|
@ -324,7 +324,7 @@ class Site < Sequel::Model
|
|||
return false if ip.blank?
|
||||
return true if Site.where(is_banned: true).
|
||||
where(ip: ip).
|
||||
where(['updated_at > ?', Time.now-BANNED_TIME]).
|
||||
where(['banned_at > ?', Time.now-BANNED_TIME]).
|
||||
first
|
||||
|
||||
return true if BlockedIp[ip]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue