summaryrefslogtreecommitdiff
path: root/test/web/pleroma_api/controllers/chat_controller_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-04-27 17:48:34 +0200
committerlain <lain@soykaf.club>2020-04-27 17:48:34 +0200
commitad82a216ff0676507a118e610209bd4259456b3c (patch)
tree041ac6b94756a3d806f1cacbc3b5b895184697b5 /test/web/pleroma_api/controllers/chat_controller_test.exs
parent49e673dfea0a0cc94bba9691ce171b60f8a2fd75 (diff)
downloadpleroma-ad82a216ff0676507a118e610209bd4259456b3c.tar.gz
pleroma-ad82a216ff0676507a118e610209bd4259456b3c.zip
Chat API: Align more to Pleroma/Mastodon API.
Diffstat (limited to 'test/web/pleroma_api/controllers/chat_controller_test.exs')
-rw-r--r--test/web/pleroma_api/controllers/chat_controller_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/pleroma_api/controllers/chat_controller_test.exs b/test/web/pleroma_api/controllers/chat_controller_test.exs
index 84d7b543e..b1044574b 100644
--- a/test/web/pleroma_api/controllers/chat_controller_test.exs
+++ b/test/web/pleroma_api/controllers/chat_controller_test.exs
@@ -88,7 +88,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatControllerTest do
end
end
- describe "POST /api/v1/pleroma/chats/by-ap-id/:id" do
+ describe "POST /api/v1/pleroma/chats/by-account-id/:id" do
setup do: oauth_access(["write:statuses"])
test "it creates or returns a chat", %{conn: conn} do
@@ -96,7 +96,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatControllerTest do
result =
conn
- |> post("/api/v1/pleroma/chats/by-ap-id/#{URI.encode_www_form(other_user.ap_id)}")
+ |> post("/api/v1/pleroma/chats/by-account-id/#{other_user.id}")
|> json_response_and_validate_schema(200)
assert result["id"]