diff --git a/lib/suggested_topics_builder.rb b/lib/suggested_topics_builder.rb index b57adaf40a5..afcf42ffbb2 100644 --- a/lib/suggested_topics_builder.rb +++ b/lib/suggested_topics_builder.rb @@ -21,11 +21,8 @@ class SuggestedTopicsBuilder return if results.blank? # Keep track of the ids we've added - @excluded_topic_ids << results.map {|r| r.id} - @excluded_topic_ids.flatten! - - @results << results - @results.flatten! + @excluded_topic_ids.concat results.map {|r| r.id} + @results.concat results end def results_left