Do not crash if one notification failed to render

This commit is contained in:
rinpatch 2019-09-05 08:32:49 +03:00
commit 558969a0fd
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationView do
alias Pleroma.Web.MastodonAPI.StatusView
def render("index.json", %{notifications: notifications, for: user}) do
render_many(notifications, NotificationView, "show.json", %{for: user})
safe_render_many(notifications, NotificationView, "show.json", %{for: user})
end
def render("show.json", %{