diff options
| author | lain <lain@soykaf.club> | 2019-12-04 16:35:59 +0100 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-12-04 16:35:59 +0100 |
| commit | e9993acdbbd1649bbcbf3fb36581b91145fe6055 (patch) | |
| tree | b78d91c904e307a504ed91a06ab718d8c694ca5c /test/web/activity_pub/activity_pub_controller_test.exs | |
| parent | 1bd1f62af55e01613e6362661b36a19091c87424 (diff) | |
| parent | 228bf4d214abe3bb62c52128d3bc145e396b174d (diff) | |
| download | pleroma-e9993acdbbd1649bbcbf3fb36581b91145fe6055.tar.gz pleroma-e9993acdbbd1649bbcbf3fb36581b91145fe6055.zip | |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel
Diffstat (limited to 'test/web/activity_pub/activity_pub_controller_test.exs')
| -rw-r--r-- | test/web/activity_pub/activity_pub_controller_test.exs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs index a5414c521..1aa73d75c 100644 --- a/test/web/activity_pub/activity_pub_controller_test.exs +++ b/test/web/activity_pub/activity_pub_controller_test.exs @@ -110,6 +110,19 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do assert json_response(conn, 200) == UserView.render("user.json", %{user: user}) end + + test "it returns 404 for remote users", %{ + conn: conn + } do + user = insert(:user, local: false, nickname: "remoteuser@example.com") + + conn = + conn + |> put_req_header("accept", "application/json") + |> get("/users/#{user.nickname}.json") + + assert json_response(conn, 404) + end end describe "/object/:uuid" do |
