aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/captcha
diff options
context:
space:
mode:
authorEkaterina Vaartis <vaartis@cock.li>2020-11-01 12:05:39 +0300
committerEkaterina Vaartis <vaartis@cock.li>2020-11-01 12:05:39 +0300
commit8f00d90f9199e384fb1befb677c1c0595a0c854c (patch)
tree0556b894653f3a88e4c701fb40427aad9ac23d44 /lib/pleroma/captcha
parent4fbdd1c8a12fd2b3dc6b63ccbbaa7d4241fa778e (diff)
downloadpleroma-8f00d90f9199e384fb1befb677c1c0595a0c854c.tar.gz
Use Pleroma.HTTP instead of Tesla
Closes #2275 As discovered in the issue, captcha used Tesla.get instead of Pleroma.HTTP. I've also grep'ed the repo and changed the other place where this was used.
Diffstat (limited to 'lib/pleroma/captcha')
-rw-r--r--lib/pleroma/captcha/kocaptcha.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/captcha/kocaptcha.ex b/lib/pleroma/captcha/kocaptcha.ex
index 337506647..201b55ab4 100644
--- a/lib/pleroma/captcha/kocaptcha.ex
+++ b/lib/pleroma/captcha/kocaptcha.ex
@@ -10,7 +10,7 @@ defmodule Pleroma.Captcha.Kocaptcha do
def new do
endpoint = Pleroma.Config.get!([__MODULE__, :endpoint])
- case Tesla.get(endpoint <> "/new") do
+ case Pleroma.HTTP.get(endpoint <> "/new") do
{:error, _} ->
%{error: :kocaptcha_service_unavailable}