Merge branch 'fix/conversations-rendering' into 'develop'

Fix rendering conversations when there's a malformed status

Closes #1401

See merge request pleroma/pleroma!1973
This commit is contained in:
rinpatch 2019-11-14 14:40:37 +00:00
commit 09b4f7269e

View File

@ -12,7 +12,10 @@ defmodule Pleroma.Web.MastodonAPI.ConversationView do
alias Pleroma.Web.MastodonAPI.StatusView alias Pleroma.Web.MastodonAPI.StatusView
def render("participations.json", %{participations: participations, for: user}) do 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 end
def render("participation.json", %{participation: participation, for: user}) do def render("participation.json", %{participation: participation, for: user}) do