mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 16:21:52 +02:00
async black box
This commit is contained in:
parent
e4c580564b
commit
a2a46d406e
2 changed files with 14 additions and 4 deletions
|
@ -1781,10 +1781,7 @@ class Site < Sequel::Model
|
|||
end
|
||||
|
||||
if pathname.extname.match(HTML_REGEX) && defined?(BlackBox)
|
||||
begin
|
||||
BlackBox.tos_violation_check self, uploaded
|
||||
rescue
|
||||
end
|
||||
BlackBoxWorker.perform_async values[:id], relative_path
|
||||
end
|
||||
|
||||
relative_path_dir = Pathname(relative_path).dirname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue