Conversation: Render new participation on update.
authorlain <lain@soykaf.club>
Wed, 14 Aug 2019 13:56:15 +0000 (15:56 +0200)
committerlain <lain@soykaf.club>
Wed, 14 Aug 2019 13:56:15 +0000 (15:56 +0200)
lib/pleroma/web/pleroma_api/pleroma_api_controller.ex

index b5c3d27286da15842f9e4223216093e7a2d78749..6d74d418ea2a4c32a0273e4da3366bc23e9d7028 100644 (file)
@@ -66,7 +66,7 @@ defmodule Pleroma.Web.PleromaAPI.PleromaAPIController do
       |> Participation.get()
 
     with true <- user.id == participation.user_id,
-         {:ok, _} <- Participation.set_recipients(participation, recipients) do
+         {:ok, participation} <- Participation.set_recipients(participation, recipients) do
       conn
       |> put_view(ConversationView)
       |> render("participation.json", %{participation: participation, for: user})