projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update mastofe paths (#95)
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
schemas
/
chat.ex
diff --git
a/lib/pleroma/web/api_spec/schemas/chat.ex
b/lib/pleroma/web/api_spec/schemas/chat.ex
index c6ec07c885c0e3435b893f37733902c01483589e..4afed910d6cfc475440eab57038bc630018bd518 100644
(file)
--- a/
lib/pleroma/web/api_spec/schemas/chat.ex
+++ b/
lib/pleroma/web/api_spec/schemas/chat.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Schemas.Chat do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Schemas.Chat do
@@
-16,13
+16,14
@@
defmodule Pleroma.Web.ApiSpec.Schemas.Chat do
id: %Schema{type: :string},
account: %Schema{type: :object},
unread: %Schema{type: :integer},
id: %Schema{type: :string},
account: %Schema{type: :object},
unread: %Schema{type: :integer},
- last_message: ChatMessage
+ last_message: ChatMessage,
+ updated_at: %Schema{type: :string, format: :"date-time"}
},
example: %{
"account" => %{
"pleroma" => %{
"is_admin" => false,
},
example: %{
"account" => %{
"pleroma" => %{
"is_admin" => false,
- "
confirmation_pending" => fals
e,
+ "
is_confirmed" => tru
e,
"hide_followers_count" => false,
"is_moderator" => false,
"hide_favorites" => true,
"hide_followers_count" => false,
"is_moderator" => false,
"hide_favorites" => true,
@@
-49,7
+50,7
@@
defmodule Pleroma.Web.ApiSpec.Schemas.Chat do
"fields" => []
},
"statuses_count" => 1,
"fields" => []
},
"statuses_count" => 1,
- "locked" => false,
+ "
is_
locked" => false,
"created_at" => "2020-04-16T13:40:15.000Z",
"display_name" => "lain",
"fields" => [],
"created_at" => "2020-04-16T13:40:15.000Z",
"display_name" => "lain",
"fields" => [],
@@
-67,7
+68,8
@@
defmodule Pleroma.Web.ApiSpec.Schemas.Chat do
},
"id" => "1",
"unread" => 2,
},
"id" => "1",
"unread" => 2,
- "last_message" => ChatMessage.schema().example()
+ "last_message" => ChatMessage.schema().example(),
+ "updated_at" => "2020-04-21T15:06:45.000Z"
}
})
end
}
})
end