mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:40:00 +08:00
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
Block a user