mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 10:27:25 +00:00
OpenAPI: Replace actor_id by account_id to follow ChatMessage schema
This commit is contained in:
parent
ce9647aed7
commit
b31844d6e0
|
@ -300,11 +300,11 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
|
||||||
"content" => "Check this out :firefox:",
|
"content" => "Check this out :firefox:",
|
||||||
"id" => "13",
|
"id" => "13",
|
||||||
"chat_id" => "1",
|
"chat_id" => "1",
|
||||||
"actor_id" => "someflakeid",
|
"account_id" => "someflakeid",
|
||||||
"unread" => false
|
"unread" => false
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
"actor_id" => "someflakeid",
|
"account_id" => "someflakeid",
|
||||||
"content" => "Whats' up?",
|
"content" => "Whats' up?",
|
||||||
"id" => "12",
|
"id" => "12",
|
||||||
"chat_id" => "1",
|
"chat_id" => "1",
|
||||||
|
@ -337,7 +337,7 @@ defmodule Pleroma.Web.ApiSpec.ChatOperation do
|
||||||
|
|
||||||
def mark_as_read do
|
def mark_as_read do
|
||||||
%Schema{
|
%Schema{
|
||||||
title: "MarkAsReadRequest",
|
title: "MarkAsReadRequest",Update chat_operation.ex
|
||||||
description: "POST body for marking a number of chat messages as read",
|
description: "POST body for marking a number of chat messages as read",
|
||||||
type: :object,
|
type: :object,
|
||||||
required: [:last_read_id],
|
required: [:last_read_id],
|
||||||
|
|
Loading…
Reference in a new issue