Merge branch 'fix/safe-render-notifications' into 'develop'
Do not crash if one notification failed to render See merge request pleroma/pleroma!1630
This commit is contained in:
commit
3e30f6e198
2 changed files with 2 additions and 1 deletions
|
|
@ -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", %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue