X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fcaptcha%2Fkocaptcha.ex;h=06ceb20b6f49237f3a706a838b7744751db1162a;hb=a81342a234a3808e2115c888a45c524e39a6ab60;hp=a3128decb4daa8ef43acaf5aeef8aaf5a89c6b8e;hpb=82c62c5028f517ded121b46b9806053989defdc2;p=akkoma
diff --git a/lib/pleroma/captcha/kocaptcha.ex b/lib/pleroma/captcha/kocaptcha.ex
index a3128decb..06ceb20b6 100644
--- a/lib/pleroma/captcha/kocaptcha.ex
+++ b/lib/pleroma/captcha/kocaptcha.ex
@@ -1,17 +1,15 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Captcha.Kocaptcha do
import Pleroma.Web.Gettext
alias Pleroma.Captcha.Service
-
@behaviour Service
- @default_endpoint "https://captcha.kotobank.ch"
@impl Service
def new do
- endpoint = Pleroma.Config.get([__MODULE__, :endpoint], @default_endpoint)
+ endpoint = Pleroma.Config.get!([__MODULE__, :endpoint])
case Tesla.get(endpoint <> "/new") do
{:error, _} ->