summaryrefslogtreecommitdiff
path: root/test/web/feed/user_controller_test.exs
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2020-07-29 12:43:39 -0500
committerAlex Gleason <alex@alexgleason.me>2020-07-29 12:43:39 -0500
commitd8a01c94321e90832fea5a26fbb2a2f5be1c5ba5 (patch)
tree43a18b75775223594f58860098e231068000b0d4 /test/web/feed/user_controller_test.exs
parent3b7c454418700ca36c0a71272f913ea8c6e464e9 (diff)
parenta6d3bb5f30697cafc5dd9acf490bde7e2f33f5f8 (diff)
downloadpleroma-d8a01c94321e90832fea5a26fbb2a2f5be1c5ba5.tar.gz
pleroma-d8a01c94321e90832fea5a26fbb2a2f5be1c5ba5.zip
Merge remote-tracking branch 'upstream/develop' into hide-reactions
Diffstat (limited to 'test/web/feed/user_controller_test.exs')
-rw-r--r--test/web/feed/user_controller_test.exs11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/web/feed/user_controller_test.exs b/test/web/feed/user_controller_test.exs
index fa2ed1ea5..0d2a61967 100644
--- a/test/web/feed/user_controller_test.exs
+++ b/test/web/feed/user_controller_test.exs
@@ -181,6 +181,17 @@ defmodule Pleroma.Web.Feed.UserControllerTest do
assert activity_titles == ['public', 'unlisted']
end
+
+ test "returns 404 when the user is remote", %{conn: conn} do
+ user = insert(:user, local: false)
+
+ {:ok, _} = CommonAPI.post(user, %{status: "test"})
+
+ assert conn
+ |> put_req_header("accept", "application/atom+xml")
+ |> get(user_feed_path(conn, :feed, user.nickname))
+ |> response(404)
+ end
end
# Note: see ActivityPubControllerTest for JSON format tests