FIX: don't show post withdrawn by author in summary emails

This commit is contained in:
Neil Lalonde 2016-08-19 12:11:21 -04:00
parent 4960365689
commit a1363feec8
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<%= category_badge(t.category, inline_style: true, absolute_url: true) %>
</div>
<%- if t.best_post.present? %>
<%- if t.best_post.present? && !t.best_post.user_deleted %>
<div class='digest-post'>
<%= email_excerpt(t.best_post.cooked, @featured_topics.size) %>
</div>