projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e853720
)
Replace HTTPoison with Tesla for kocaptha
author
Ekaterina Vaartis
<vaartis@cock.li>
Sat, 15 Dec 2018 19:43:28 +0000
(22:43 +0300)
committer
Ekaterina Vaartis
<vaartis@cock.li>
Sat, 15 Dec 2018 19:43:28 +0000
(22:43 +0300)
lib/pleroma/captcha/kocaptcha.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/captcha/kocaptcha.ex
b/lib/pleroma/captcha/kocaptcha.ex
index 173ce17f7c3e94422de08ffa747c6305991581e8..4ecd1a81f9472fde6308f7d3d3b3cfe7bb608457 100644
(file)
--- 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"}