diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-07-29 12:43:39 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2020-07-29 12:43:39 -0500 |
commit | d8a01c94321e90832fea5a26fbb2a2f5be1c5ba5 (patch) | |
tree | 43a18b75775223594f58860098e231068000b0d4 /test/web/feed/user_controller_test.exs | |
parent | 3b7c454418700ca36c0a71272f913ea8c6e464e9 (diff) | |
parent | a6d3bb5f30697cafc5dd9acf490bde7e2f33f5f8 (diff) | |
download | pleroma-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.exs | 11 |
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 |