summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/activity_pub_controller_test.exs
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2019-11-26 00:25:43 +0900
committerMaxim Filippov <colixer@gmail.com>2019-11-26 00:25:43 +0900
commitb62be2564c1b3e33e51628e980c5d1ebe259475f (patch)
tree2c3664c743e03027ccc73fd10d43c0c7acd3fbc8 /test/web/activity_pub/activity_pub_controller_test.exs
parentb3b4e5ca805780f278b6239973d6d497b1697fbd (diff)
parentdc9090810dbed74da91f2e94f23e5512d259e4fc (diff)
downloadpleroma-b62be2564c1b3e33e51628e980c5d1ebe259475f.tar.gz
pleroma-b62be2564c1b3e33e51628e980c5d1ebe259475f.zip
Merge branch 'develop' into feature/admin-api-render-whole-status
Diffstat (limited to 'test/web/activity_pub/activity_pub_controller_test.exs')
-rw-r--r--test/web/activity_pub/activity_pub_controller_test.exs13
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