From b81eb4303897fcbb67968b93e10c065584b5b429 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 6 Dec 2019 19:16:35 -0500 Subject: [PATCH] handle nil notification user --- lib/philomena_web/templates/notification/_image.html.slime | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/philomena_web/templates/notification/_image.html.slime b/lib/philomena_web/templates/notification/_image.html.slime index a731b078..ebedb422 100644 --- a/lib/philomena_web/templates/notification/_image.html.slime +++ b/lib/philomena_web/templates/notification/_image.html.slime @@ -1,6 +1,9 @@ .flex.flex--centered.flex__grow div - => render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @notification.actor_child, conn: @conn + = if @notification.actor_child do + => render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @notification.actor_child, conn: @conn + - else + ' Someone => @notification.action strong>