forked from AkkomaGang/akkoma
Replace HTTPoison with Tesla for kocaptha
This commit is contained in:
parent
e8537208bd
commit
8d55a549e6
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ defmodule Pleroma.Captcha.Kocaptcha do
|
||||||
def new() do
|
def new() do
|
||||||
endpoint = Pleroma.Config.get!([__MODULE__, :endpoint])
|
endpoint = Pleroma.Config.get!([__MODULE__, :endpoint])
|
||||||
|
|
||||||
case HTTPoison.get(endpoint <> "/new") do
|
case Tesla.get(endpoint <> "/new") do
|
||||||
{:error, _} ->
|
{:error, _} ->
|
||||||
%{error: "Kocaptcha service unavailable"}
|
%{error: "Kocaptcha service unavailable"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue