FEATURE: group avatar flair shows on topic participants list, and participant avatars can have custom styles

This commit is contained in:
Neil Lalonde
2017-01-18 11:37:43 -05:00
parent 01c8974c36
commit 61d4c1203e
7 changed files with 63 additions and 14 deletions

View File

@@ -280,7 +280,7 @@ class TopicView
def participants
@participants ||= begin
participants = {}
User.where(id: post_counts_by_user.map {|k,v| k}).each {|u| participants[u.id] = u}
User.where(id: post_counts_by_user.map {|k,v| k}).includes(:primary_group).each {|u| participants[u.id] = u}
participants
end
end