Fix rendering conversations when there's a malformed status
authorMark Felder <feld@FreeBSD.org>
Tue, 12 Nov 2019 00:29:55 +0000 (18:29 -0600)
committerMark Felder <feld@FreeBSD.org>
Tue, 12 Nov 2019 00:29:55 +0000 (18:29 -0600)
lib/pleroma/web/mastodon_api/views/conversation_view.ex

index c5998e6611d2c0917016353549479e002a0b1108..51d6c0898b5307da04f68b85f8b3562c45a9f7ee 100644 (file)
@@ -12,7 +12,7 @@ defmodule Pleroma.Web.MastodonAPI.ConversationView do
   alias Pleroma.Web.MastodonAPI.StatusView
 
   def render("participations.json", %{participations: participations, for: user}) do
-    render_many(participations, __MODULE__, "participation.json", as: :participation, for: user)
+    safe_render_many(participations, __MODULE__, "participation.json", %{as: :participation, for: user})
   end
 
   def render("participation.json", %{participation: participation, for: user}) do