From b89238b6ea2d0108cba55f0ff37e822c544e3510 Mon Sep 17 00:00:00 2001 From: syeopite <70992037+syeopite@users.noreply.github.com> Date: Sat, 16 Oct 2021 06:56:12 -0700 Subject: [PATCH] Revert "Unregister captcha job (#2390)" This reverts commit 87f46a7532dbb8abdb09413bcc2a62f63e0d4c9e. --- src/invidious.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index 21a12ff2..ac079a5c 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -155,6 +155,10 @@ if CONFIG.popular_enabled Invidious::Jobs.register Invidious::Jobs::PullPopularVideosJob.new(PG_DB) end +if CONFIG.captcha_key + Invidious::Jobs.register Invidious::Jobs::BypassCaptchaJob.new +end + connection_channel = Channel({Bool, Channel(PQ::Notification)}).new(32) Invidious::Jobs.register Invidious::Jobs::NotificationJob.new(connection_channel, CONFIG.database_url)