mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
fix the build
This commit is contained in:
parent
06e509057e
commit
7ca2e6a80c
@ -92,7 +92,7 @@ class TopicViewSerializer < ApplicationSerializer
|
||||
end
|
||||
|
||||
if object.post_counts_by_user.present?
|
||||
participants = object.post_counts_by_user.reject{ |p| object.participants[p].blank? }.map do |pc|
|
||||
participants = object.post_counts_by_user.reject { |p| object.participants[p].blank? }.map do |pc|
|
||||
TopicPostCountSerializer.new({ user: object.participants[pc[0]], post_count: pc[1] }, scope: scope, root: false)
|
||||
end
|
||||
result[:participants] = participants if participants.length > 0
|
||||
|
Loading…
Reference in New Issue
Block a user