/api/ap/uploadMedia → /api/ap/upload_media
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 24 Sep 2019 17:03:06 +0000 (19:03 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 24 Sep 2019 17:03:06 +0000 (19:03 +0200)
lib/pleroma/web/router.ex
test/web/activity_pub/activity_pub_controller_test.exs
test/web/ostatus/ostatus_controller_test.exs

index 8ee188f08ffc5e8bd537600eaf199e1303841dc1..2e8fda4abd6b889ed2cc68c2cf4a11a9d5f0a44c 100644 (file)
@@ -572,7 +572,7 @@ defmodule Pleroma.Web.Router do
     scope [] do
       pipe_through(:oauth_write)
       post("/users/:nickname/outbox", ActivityPubController, :update_outbox)
-      post("/api/ap/uploadMedia", ActivityPubController, :upload_media)
+      post("/api/ap/upload_media", ActivityPubController, :upload_media)
     end
 
     scope [] do
index c2bcddf85b02dee13673486ca28342253567706c..8868d8a0de6c57e3f386f34ef7e2449a5b71a530 100644 (file)
@@ -1008,7 +1008,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
       conn =
         conn
         |> assign(:user, user)
-        |> post("/api/ap/uploadMedia", %{"file" => image, "description" => desc})
+        |> post("/api/ap/upload_media", %{"file" => image, "description" => desc})
 
       assert object = json_response(conn, :created)
       assert object["name"] == desc
index fc1635a2f8e78d8b002eadd358c592cc2396a9a0..3a867b8c01027289a29006c249c8dd6f1cbc3545 100644 (file)
@@ -401,7 +401,7 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest do
                "oauthRegistrationEndpoint" => "#{Pleroma.Web.base_url()}/api/v1/apps",
                "oauthTokenEndpoint" => "#{Pleroma.Web.base_url()}/oauth/token",
                "sharedInbox" => "#{Pleroma.Web.base_url()}/inbox",
-               "uploadMedia" => "#{Pleroma.Web.base_url()}/api/ap/uploadMedia"
+               "uploadMedia" => "#{Pleroma.Web.base_url()}/api/ap/upload_media"
              }
 
       assert response["@context"] == [
@@ -464,7 +464,7 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest do
                "oauthRegistrationEndpoint" => "#{Pleroma.Web.base_url()}/api/v1/apps",
                "oauthTokenEndpoint" => "#{Pleroma.Web.base_url()}/oauth/token",
                "sharedInbox" => "#{Pleroma.Web.base_url()}/inbox",
-               "uploadMedia" => "#{Pleroma.Web.base_url()}/api/ap/uploadMedia"
+               "uploadMedia" => "#{Pleroma.Web.base_url()}/api/ap/upload_media"
              }
 
       assert response["@context"] == [