mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
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
|
||||
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