diff options
author | lain <lain@soykaf.club> | 2020-06-15 12:27:13 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-15 12:27:13 +0200 |
commit | b7df7436c813bfcb4f27ac64c85ebc1507153601 (patch) | |
tree | 368a8b9372bc898159c20cc128fb66fb1d915105 /test | |
parent | 448e93ce2c1eab9eb91118b90f661c31056e4781 (diff) | |
download | pleroma-b7df7436c813bfcb4f27ac64c85ebc1507153601.tar.gz pleroma-b7df7436c813bfcb4f27ac64c85ebc1507153601.zip |
Conversations: Return last dm for conversation, not last message.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/views/conversation_view_test.exs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/web/mastodon_api/views/conversation_view_test.exs b/test/web/mastodon_api/views/conversation_view_test.exs index 6f84366f8..2e8203c9b 100644 --- a/test/web/mastodon_api/views/conversation_view_test.exs +++ b/test/web/mastodon_api/views/conversation_view_test.exs @@ -15,8 +15,17 @@ defmodule Pleroma.Web.MastodonAPI.ConversationViewTest do user = insert(:user) other_user = insert(:user) + {:ok, parent} = CommonAPI.post(user, %{status: "parent"}) + {:ok, activity} = - CommonAPI.post(user, %{status: "hey @#{other_user.nickname}", visibility: "direct"}) + CommonAPI.post(user, %{ + status: "hey @#{other_user.nickname}", + visibility: "direct", + in_reply_to_id: parent.id + }) + + {:ok, _reply_activity} = + CommonAPI.post(user, %{status: "hu", visibility: "public", in_reply_to_id: parent.id}) [participation] = Participation.for_user_with_last_activity_id(user) |