forked from mirrors/akkoma
Replace HTTPoison with Tesla for kocaptha
This commit is contained in:
parent
e8537208bd
commit
8d55a549e6
|
@ -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"}
|
||||
|
||||
|
|
Loading…
Reference in a new issue