mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +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'
|
raise 'username is missing'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return if is_banned == true
|
||||||
|
|
||||||
DB.transaction {
|
DB.transaction {
|
||||||
self.is_banned = true
|
self.is_banned = true
|
||||||
self.updated_at = Time.now
|
self.updated_at = Time.now
|
||||||
|
|
Loading…
Add table
Reference in a new issue