aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-09-05 05:47:06 +0000
committerrinpatch <rinpatch@sdf.org>2019-09-05 05:47:06 +0000
commit3e30f6e19824dc90717fc0929feddb24220a89ab (patch)
treeec483d3c4f7e60fddc9b56e8a57d596c7842f210 /lib
parent3b8d64ee24053638aa22f67ced1367c8666b9fa0 (diff)
parent558969a0fd7f64387e59a54b5733d63d3a46a031 (diff)
downloadpleroma-3e30f6e19824dc90717fc0929feddb24220a89ab.tar.gz
Merge branch 'fix/safe-render-notifications' into 'develop'
Do not crash if one notification failed to render See merge request pleroma/pleroma!1630
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/notification_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/notification_view.ex b/lib/pleroma/web/mastodon_api/views/notification_view.ex
index 27e9cab06..ec8eadcaa 100644
--- a/lib/pleroma/web/mastodon_api/views/notification_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/notification_view.ex
@@ -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", %{