From a1363feec866aaacd8c9630046a29b32cc44898a Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 19 Aug 2016 12:11:21 -0400 Subject: [PATCH] FIX: don't show post withdrawn by author in summary emails --- app/views/user_notifications/digest.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 042a332bf48..d70c1189c6b 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -26,7 +26,7 @@ <%= category_badge(t.category, inline_style: true, absolute_url: true) %> - <%- if t.best_post.present? %> + <%- if t.best_post.present? && !t.best_post.user_deleted %>
<%= email_excerpt(t.best_post.cooked, @featured_topics.size) %>