summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-11-11 18:29:55 -0600
committerMark Felder <feld@FreeBSD.org>2019-11-11 18:29:55 -0600
commit7d101bc9c5f8ffc1d78c8d5e22f630ad0a7d7e1b (patch)
tree4b69a4d35a2f7f32ef36a8a8e0d65ac7813357b5
parentfb090b748ab7ec3740008017f419e210405e2633 (diff)
Fix rendering conversations when there's a malformed status
-rw-r--r--lib/pleroma/web/mastodon_api/views/conversation_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/conversation_view.ex b/lib/pleroma/web/mastodon_api/views/conversation_view.ex
index c5998e661..51d6c0898 100644
--- a/lib/pleroma/web/mastodon_api/views/conversation_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/conversation_view.ex
@@ -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