diff options
author | Maxim Filippov <colixer@gmail.com> | 2019-12-13 19:00:26 +0300 |
---|---|---|
committer | Maxim Filippov <colixer@gmail.com> | 2019-12-14 03:06:43 +0300 |
commit | eb11c6028973b945361095d3f4791ac6f61379a9 (patch) | |
tree | 11b73733afbf0b9d221da47b6d621f320a5626d5 /test/web/mastodon_api/controllers/account_controller_test.exs | |
parent | fd697cf2090b61db60a02694c3227850df176e2d (diff) | |
download | pleroma-eb11c6028973b945361095d3f4791ac6f61379a9.tar.gz pleroma-eb11c6028973b945361095d3f4791ac6f61379a9.zip |
Disable rate limiter for socket/localhost (unless RemoteIp is enabled)
Diffstat (limited to 'test/web/mastodon_api/controllers/account_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/account_controller_test.exs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs index fa08ae4df..14d97e248 100644 --- a/test/web/mastodon_api/controllers/account_controller_test.exs +++ b/test/web/mastodon_api/controllers/account_controller_test.exs @@ -766,6 +766,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do end test "rate limit", %{conn: conn} do + Pleroma.Config.put([Pleroma.Plugs.RemoteIp, :enabled], true) app_token = insert(:oauth_token, user: nil) conn = |