Merge branch 'issue/1339' into 'develop'
[akkoma] / lib / pleroma / web / mastodon_api / views / conversation_view.ex
index 2c5767dd8bb172954ad1ed3f77335e9ea83c6c9e..c5998e6611d2c0917016353549479e002a0b1108 100644 (file)
@@ -32,9 +32,13 @@ defmodule Pleroma.Web.MastodonAPI.ConversationView do
 
     %{
       id: participation.id |> to_string(),
-      accounts: render(AccountView, "accounts.json", users: users, as: :user),
+      accounts: render(AccountView, "index.json", users: users, as: :user),
       unread: !participation.read,
-      last_status: render(StatusView, "show.json", activity: activity, for: user)
+      last_status:
+        render(StatusView, "show.json",
+          activity: activity,
+          direct_conversation_id: participation.id
+        )
     }
   end
 end