mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Revised how black box works
This commit is contained in:
parent
bc0addb27b
commit
985a21d347
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ class BlackBoxWorker
|
|||
def perform(site_id, path)
|
||||
site = Site[site_id]
|
||||
return true if site.nil? || site.is_banned? || site.is_deleted
|
||||
BlackBox.tos_violation_check site, path
|
||||
BlackBox.new(site, path).tos_violation_check!
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue