diff options
| author | Sean King <seanking2919@protonmail.com> | 2022-07-16 23:44:37 -0600 |
|---|---|---|
| committer | Sean King <seanking2919@protonmail.com> | 2022-07-16 23:44:37 -0600 |
| commit | 64e16e6a4be83e9328d62101cc21d10cf07e38fb (patch) | |
| tree | 6bc83b4b124000f005d53502e1765dd8ef206469 /test | |
| parent | 8aba7c08d18eef1bb58f7f4a21de533ed52d36a3 (diff) | |
| download | pleroma-64e16e6a4be83e9328d62101cc21d10cf07e38fb.tar.gz pleroma-64e16e6a4be83e9328d62101cc21d10cf07e38fb.zip | |
Document way to do notice compatibility routes with Nginx reverse-proxy instead
Diffstat (limited to 'test')
| -rw-r--r-- | test/pleroma/web/o_status/o_status_controller_test.exs | 50 | ||||
| -rw-r--r-- | test/pleroma/web/plugs/frontend_static_plug_test.exs | 2 |
2 files changed, 0 insertions, 52 deletions
diff --git a/test/pleroma/web/o_status/o_status_controller_test.exs b/test/pleroma/web/o_status/o_status_controller_test.exs index 5abbcfbdc..36e581f5e 100644 --- a/test/pleroma/web/o_status/o_status_controller_test.exs +++ b/test/pleroma/web/o_status/o_status_controller_test.exs @@ -343,54 +343,4 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest do |> response(200) end end - - describe "notice compatibility routes" do - test "Soapbox FE", %{conn: conn} do - user = insert(:user) - note_activity = insert(:note_activity, user: user) - - resp = - conn - |> put_req_header("accept", "text/html") - |> get("/@#{user.nickname}/posts/#{note_activity.id}") - |> response(200) - - expected = - "<meta content=\"#{Endpoint.url()}/notice/#{note_activity.id}\" property=\"og:url\">" - - assert resp =~ expected - end - - test "Mastodon", %{conn: conn} do - user = insert(:user) - note_activity = insert(:note_activity, user: user) - - resp = - conn - |> put_req_header("accept", "text/html") - |> get("/@#{user.nickname}/#{note_activity.id}") - |> response(200) - - expected = - "<meta content=\"#{Endpoint.url()}/notice/#{note_activity.id}\" property=\"og:url\">" - - assert resp =~ expected - end - - test "Twitter", %{conn: conn} do - user = insert(:user) - note_activity = insert(:note_activity, user: user) - - resp = - conn - |> put_req_header("accept", "text/html") - |> get("/#{user.nickname}/status/#{note_activity.id}") - |> response(200) - - expected = - "<meta content=\"#{Endpoint.url()}/notice/#{note_activity.id}\" property=\"og:url\">" - - assert resp =~ expected - end - end end diff --git a/test/pleroma/web/plugs/frontend_static_plug_test.exs b/test/pleroma/web/plugs/frontend_static_plug_test.exs index a91e24c49..ab31c5f22 100644 --- a/test/pleroma/web/plugs/frontend_static_plug_test.exs +++ b/test/pleroma/web/plugs/frontend_static_plug_test.exs @@ -86,8 +86,6 @@ defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do "objects", "activities", "notice", - "@:nickname", - ":nickname", "users", "tags", "mailer", |
