projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Chat API: Align more to Pleroma/Mastodon API.
[akkoma]
/
test
/
web
/
pleroma_api
/
views
/
chat_view_test.exs
diff --git
a/test/web/pleroma_api/views/chat_view_test.exs
b/test/web/pleroma_api/views/chat_view_test.exs
index 3dca555e8600df27f7026811a5cf1c0f038065b1..1ac3483d115306a86a81112fa0b60dc3b7ec1875 100644
(file)
--- a/
test/web/pleroma_api/views/chat_view_test.exs
+++ b/
test/web/pleroma_api/views/chat_view_test.exs
@@
-6,8
+6,8
@@
defmodule Pleroma.Web.PleromaAPI.ChatViewTest do
use Pleroma.DataCase
alias Pleroma.Chat
use Pleroma.DataCase
alias Pleroma.Chat
- alias Pleroma.Web.PleromaAPI.ChatView
alias Pleroma.Web.MastodonAPI.AccountView
alias Pleroma.Web.MastodonAPI.AccountView
+ alias Pleroma.Web.PleromaAPI.ChatView
import Pleroma.Factory
import Pleroma.Factory
@@
-21,8
+21,7
@@
defmodule Pleroma.Web.PleromaAPI.ChatViewTest do
assert represented_chat == %{
id: "#{chat.id}",
assert represented_chat == %{
id: "#{chat.id}",
- recipient: recipient.ap_id,
- recipient_account: AccountView.render("show.json", user: recipient),
+ account: AccountView.render("show.json", user: recipient),
unread: 0
}
end
unread: 0
}
end