summaryrefslogtreecommitdiff
path: root/test/web/feed/user_controller_test.exs
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2020-08-07 16:35:15 -0500
committerAlex Gleason <alex@alexgleason.me>2020-08-07 16:35:15 -0500
commit1a5a7ba6e8a936d3138ca530d3466111e542aef6 (patch)
treec056138ee21661af45d2363ce01282aafffb3fc0 /test/web/feed/user_controller_test.exs
parentbd1e2e3a58ebd702306e7a6e2df985ac07e5f7d8 (diff)
parent47698fc322da58894dd41c1bfd5ca0376200dc5e (diff)
downloadpleroma-1a5a7ba6e8a936d3138ca530d3466111e542aef6.tar.gz
pleroma-1a5a7ba6e8a936d3138ca530d3466111e542aef6.zip
Merge remote-tracking branch 'upstream/develop' into aliases
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