mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
13 lines
341 B
Ruby
13 lines
341 B
Ruby
class BlackBoxWorker
|
|
include Sidekiq::Worker
|
|
sidekiq_options queue: :black_box, retry: 10, backtrace: true
|
|
|
|
def perform(site_id, path)
|
|
site = Site[site_id]
|
|
return true if site.nil? || site.is_banned? || site.is_deleted
|
|
BlackBox.new(site, path).tos_violation_check!
|
|
end
|
|
end
|
|
|
|
|
|
# BlackBox.tos_violation_check self, uploaded
|