diff options
author | Mark Felder <feld@FreeBSD.org> | 2019-11-11 18:29:55 -0600 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2019-11-11 18:29:55 -0600 |
commit | 7d101bc9c5f8ffc1d78c8d5e22f630ad0a7d7e1b (patch) | |
tree | 4b69a4d35a2f7f32ef36a8a8e0d65ac7813357b5 | |
parent | fb090b748ab7ec3740008017f419e210405e2633 (diff) | |
download | pleroma-7d101bc9c5f8ffc1d78c8d5e22f630ad0a7d7e1b.tar.gz pleroma-7d101bc9c5f8ffc1d78c8d5e22f630ad0a7d7e1b.zip |
Fix rendering conversations when there's a malformed status
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/conversation_view.ex | 2 |
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 |