Fix TopicPostersSummary when a suggested topic includes a user who has been deleted

This commit is contained in:
Neil Lalonde 2013-05-27 14:03:30 -04:00
parent 197909246c
commit b1ef2ea1e1
1 changed files with 1 additions and 1 deletions

View File

@ -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