OpenAPI: Replace actor_id by account_id to follow ChatMessage schema
authorAlibek Omarov <a1ba.omarov@gmail.com>
Sun, 26 Jul 2020 13:54:56 +0000 (13:54 +0000)
committerAlibek Omarov <a1ba.omarov@gmail.com>
Sun, 26 Jul 2020 13:54:56 +0000 (13:54 +0000)
lib/pleroma/web/api_spec/operations/chat_operation.ex

index cf299bfc264a39cbe05ed9fc554095bf1b7a45ad..1a5b05899bd13b3b3cbf031d9182357747f353ac 100644 (file)
@@ -300,11 +300,11 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
           "content" => "Check this out :firefox:",
           "id" => "13",
           "chat_id" => "1",
-          "actor_id" => "someflakeid",
+          "account_id" => "someflakeid",
           "unread" => false
         },
         %{
-          "actor_id" => "someflakeid",
+          "account_id" => "someflakeid",
           "content" => "Whats' up?",
           "id" => "12",
           "chat_id" => "1",
@@ -337,7 +337,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
 
   def mark_as_read do
     %Schema{
-      title: "MarkAsReadRequest",
+      title: "MarkAsReadRequest",Update chat_operation.ex
       description: "POST body for marking a number of chat messages as read",
       type: :object,
       required: [:last_read_id],