aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-14 13:20:28 +0200
committerlain <lain@soykaf.club>2020-05-14 13:20:28 +0200
commit3342846ac2bbd48e985cfeff26ba4593f4815879 (patch)
treeb24f38ad7d4b7bdf3cb216fec7573b3a41166420 /test
parent0f0acc740d30c47d093f27875d4decf0693b2845 (diff)
downloadpleroma-3342846ac2bbd48e985cfeff26ba4593f4815879.tar.gz
ChatView: Add update_at field.
Diffstat (limited to 'test')
-rw-r--r--test/web/pleroma_api/views/chat_view_test.exs4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/web/pleroma_api/views/chat_view_test.exs b/test/web/pleroma_api/views/chat_view_test.exs
index e24e29835..6062a0cfe 100644
--- a/test/web/pleroma_api/views/chat_view_test.exs
+++ b/test/web/pleroma_api/views/chat_view_test.exs
@@ -8,6 +8,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatViewTest do
alias Pleroma.Chat
alias Pleroma.Object
alias Pleroma.Web.CommonAPI
+ alias Pleroma.Web.CommonAPI.Utils
alias Pleroma.Web.MastodonAPI.AccountView
alias Pleroma.Web.PleromaAPI.ChatMessageView
alias Pleroma.Web.PleromaAPI.ChatView
@@ -26,7 +27,8 @@ defmodule Pleroma.Web.PleromaAPI.ChatViewTest do
id: "#{chat.id}",
account: AccountView.render("show.json", user: recipient),
unread: 0,
- last_message: nil
+ last_message: nil,
+ updated_at: Utils.to_masto_date(chat.updated_at)
}
{:ok, chat_message_creation} = CommonAPI.post_chat_message(user, recipient, "hello")