Fix TopicPostersSummary when a suggested topic includes a user who has been deleted
This commit is contained in:
parent
197909246c
commit
b1ef2ea1e1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue