tests for mastodon_api_controller.ex
This commit is contained in:
parent
130bc8e0d5
commit
ab2f21e470
7 changed files with 438 additions and 165 deletions
|
|
@ -29,7 +29,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
|||
captcha_enabled = Pleroma.Config.get([Pleroma.Captcha, :enabled])
|
||||
# true if captcha is disabled or enabled and valid, false otherwise
|
||||
captcha_ok =
|
||||
if !captcha_enabled do
|
||||
if not captcha_enabled do
|
||||
:ok
|
||||
else
|
||||
Pleroma.Captcha.validate(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue