From: Ekaterina Vaartis Date: Sat, 15 Dec 2018 19:43:28 +0000 (+0300) Subject: Replace HTTPoison with Tesla for kocaptha X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=8d55a549e678daa057fce81d1d2ee46b2f8c5545;p=akkoma Replace HTTPoison with Tesla for kocaptha --- diff --git a/lib/pleroma/captcha/kocaptcha.ex b/lib/pleroma/captcha/kocaptcha.ex index 173ce17f7..4ecd1a81f 100644 --- a/lib/pleroma/captcha/kocaptcha.ex +++ b/lib/pleroma/captcha/kocaptcha.ex @@ -8,7 +8,7 @@ defmodule Pleroma.Captcha.Kocaptcha do def new() do endpoint = Pleroma.Config.get!([__MODULE__, :endpoint]) - case HTTPoison.get(endpoint <> "/new") do + case Tesla.get(endpoint <> "/new") do {:error, _} -> %{error: "Kocaptcha service unavailable"}