mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
skip already banned sites
This commit is contained in:
parent
c0bea57468
commit
d261e5bf95
1 changed files with 2 additions and 0 deletions
|
@ -243,6 +243,8 @@ class Site < Sequel::Model
|
|||
raise 'username is missing'
|
||||
end
|
||||
|
||||
return if is_banned == true
|
||||
|
||||
DB.transaction {
|
||||
self.is_banned = true
|
||||
self.updated_at = Time.now
|
||||
|
|
Loading…
Add table
Reference in a new issue