diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-06-05 16:34:14 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-06-05 16:51:04 +0700 |
commit | 5b04f07a1ebe6763270b406aa6638336cab04a31 (patch) | |
tree | 052e1be81a931ca418d1c54115693cceb38c58fd /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | 17004a0f1a227d1ba8400fcdd5d351de83b09673 (diff) | |
download | pleroma-5b04f07a1ebe6763270b406aa6638336cab04a31.tar.gz pleroma-5b04f07a1ebe6763270b406aa6638336cab04a31.zip |
Limit search for unauthenticated users to local users only
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 8679a083d..51c1cdfac 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -2173,8 +2173,11 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do end test "search fetches remote accounts", %{conn: conn} do + user = insert(:user) + conn = conn + |> assign(:user, user) |> get("/api/v1/search", %{"q" => "shp@social.heldscal.la", "resolve" => "true"}) assert results = json_response(conn, 200) |