From b1ef2ea1e1faf895413bff0643428978bb38a4a5 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 27 May 2013 14:03:30 -0400 Subject: [PATCH] Fix TopicPostersSummary when a suggested topic includes a user who has been deleted --- app/models/topic_posters_summary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/topic_posters_summary.rb b/app/models/topic_posters_summary.rb index b3c0e42ae10..d3e6613c38d 100644 --- a/app/models/topic_posters_summary.rb +++ b/app/models/topic_posters_summary.rb @@ -7,7 +7,7 @@ class TopicPostersSummary end def summary - sorted_top_posters.map { |user| new_topic_poster_for user } + sorted_top_posters.map { |user| user ? new_topic_poster_for(user) : nil }.compact end private