diff options
author | rinpatch <rinpatch@sdf.org> | 2019-09-05 08:32:49 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-09-05 08:32:49 +0300 |
commit | 558969a0fd7f64387e59a54b5733d63d3a46a031 (patch) | |
tree | 385d95358965055a065e7fa90c3e2049aab4e674 /lib | |
parent | e54694748bdcc27a3acd3ff3feac5c0c284d8b0d (diff) | |
download | pleroma-558969a0fd7f64387e59a54b5733d63d3a46a031.tar.gz pleroma-558969a0fd7f64387e59a54b5733d63d3a46a031.zip |
Do not crash if one notification failed to render
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/notification_view.ex | 2 |
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", %{ |