projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'mix_sem_ver_version_fix' into 'develop'
[akkoma]
/
lib
/
pleroma
/
captcha
/
kocaptcha.ex
diff --git
a/lib/pleroma/captcha/kocaptcha.ex
b/lib/pleroma/captcha/kocaptcha.ex
index 34a6114928eb47ae782e546e0d8fad5b7722ad17..18931d5a07b19193822c8a941259564397e0aecf 100644
(file)
--- a/
lib/pleroma/captcha/kocaptcha.ex
+++ b/
lib/pleroma/captcha/kocaptcha.ex
@@
-7,7
+7,7
@@
defmodule Pleroma.Captcha.Kocaptcha do
@behaviour Service
@impl Service
@behaviour Service
@impl Service
- def new
()
do
+ def new do
endpoint = Pleroma.Config.get!([__MODULE__, :endpoint])
case Tesla.get(endpoint <> "/new") do
endpoint = Pleroma.Config.get!([__MODULE__, :endpoint])
case Tesla.get(endpoint <> "/new") do
@@
-15,7
+15,7
@@
defmodule Pleroma.Captcha.Kocaptcha do
%{error: "Kocaptcha service unavailable"}
{:ok, res} ->
%{error: "Kocaptcha service unavailable"}
{:ok, res} ->
- json_resp =
Poi
son.decode!(res.body)
+ json_resp =
Ja
son.decode!(res.body)
%{
type: :kocaptcha,
%{
type: :kocaptcha,