tests for mastodon_api_controller.ex

This commit is contained in:
Maksim Pechnikov 2019-09-06 21:50:00 +03:00
commit ab2f21e470
7 changed files with 438 additions and 165 deletions

View file

@ -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(