FIX: composer problem on the categories page (#9508)

FIX: composer problem on the categories page (#9508)

diff --git a/app/serializers/topic_list_item_serializer.rb b/app/serializers/topic_list_item_serializer.rb
index 7962c40..d0cff44 100644
--- a/app/serializers/topic_list_item_serializer.rb
+++ b/app/serializers/topic_list_item_serializer.rb
@@ -21,7 +21,7 @@ class TopicListItemSerializer < ListableTopicSerializer
   has_many :participants, serializer: TopicPosterSerializer, embed: :objects
 
   def posters
-    object.posters || []
+    object.posters || object.posters_summary || []
   end
 
   def op_like_count
diff --git a/spec/serializers/topic_list_item_serializer_spec.rb b/spec/serializers/topic_list_item_serializer_spec.rb
index 1ca54ef..72acb82 100644
--- a/spec/serializers/topic_list_item_serializer_spec.rb
+++ b/spec/serializers/topic_list_item_serializer_spec.rb
@@ -83,5 +83,15 @@ describe TopicListItemSerializer do
 
       expect(json[:tags]).to eq([])
     end
+
+    it 'return posters' do
+      json = TopicListItemSerializer.new(topic,
+        scope: Guardian.new(user),
+        hidden_tag_names: [hidden_tag.name],
+        root: false
+      ).as_json
+
+      expect(json[:posters].length).to eq(1)
+    end
   end
 end

GitHub sha: 81c216e0

This commit appears in #9508 which was approved by eviltrout. It was merged by tshenry.