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,9 +5,9 @@ class BlackBoxWorker
|
||||||
def perform(site_id, path)
|
def perform(site_id, path)
|
||||||
site = Site[site_id]
|
site = Site[site_id]
|
||||||
return true if site.nil? || site.is_banned? || site.is_deleted
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# BlackBox.tos_violation_check self, uploaded
|
# BlackBox.tos_violation_check self, uploaded
|
||||||
|
|
Loading…
Add table
Reference in a new issue