diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-12-16 19:33:51 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-12-16 19:33:51 +0700 |
commit | 8d242f52d4bf44a012603fb2cc6fe4dd9b282ef8 (patch) | |
tree | 2ea3691b7b18c53213e1c9f9b8ce6fd3818916d2 /lib | |
parent | 82c62c5028f517ded121b46b9806053989defdc2 (diff) | |
download | pleroma-8d242f52d4bf44a012603fb2cc6fe4dd9b282ef8.tar.gz |
Revert "Add default endpoint to Pleroma.Captcha.Kocaptcha"
This reverts commit 82c62c5028f517ded121b46b9806053989defdc2.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/captcha/kocaptcha.ex | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/pleroma/captcha/kocaptcha.ex b/lib/pleroma/captcha/kocaptcha.ex index a3128decb..4e1a07c59 100644 --- a/lib/pleroma/captcha/kocaptcha.ex +++ b/lib/pleroma/captcha/kocaptcha.ex @@ -5,13 +5,11 @@ 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, _} -> |