diff options
| author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-22 19:48:41 +0300 |
|---|---|---|
| committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-22 19:48:41 +0300 |
| commit | 0cf1d4fcd0c15594f663101061670a4555132840 (patch) | |
| tree | f864bd2730593546228ec466b83580ba2c437cda /test/web/twitter_api/remote_follow_controller_test.exs | |
| parent | 1961a680ec8fb333fa34a7b102820388c9cf5aa6 (diff) | |
| download | pleroma-0cf1d4fcd0c15594f663101061670a4555132840.tar.gz pleroma-0cf1d4fcd0c15594f663101061670a4555132840.zip | |
[#1560] Restricted AP- & OStatus-related routes for non-federating instances.
Diffstat (limited to 'test/web/twitter_api/remote_follow_controller_test.exs')
| -rw-r--r-- | test/web/twitter_api/remote_follow_controller_test.exs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/web/twitter_api/remote_follow_controller_test.exs b/test/web/twitter_api/remote_follow_controller_test.exs index 80a42989d..73062f18f 100644 --- a/test/web/twitter_api/remote_follow_controller_test.exs +++ b/test/web/twitter_api/remote_follow_controller_test.exs @@ -5,8 +5,10 @@ defmodule Pleroma.Web.TwitterAPI.RemoteFollowControllerTest do use Pleroma.Web.ConnCase + alias Pleroma.Config alias Pleroma.User alias Pleroma.Web.CommonAPI + import ExUnit.CaptureLog import Pleroma.Factory @@ -15,6 +17,10 @@ defmodule Pleroma.Web.TwitterAPI.RemoteFollowControllerTest do :ok end + clear_config_all([:instance, :federating]) do + Config.put([:instance, :federating], true) + end + clear_config([:instance]) clear_config([:frontend_configurations, :pleroma_fe]) clear_config([:user, :deny_follow_blocked]) |
