diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index dc740ddceea..a6eccb61dd6 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -127,7 +127,7 @@ class TopicsController < ApplicationController # Only suggest similar topics if the site has a minimmum amount of topics present. if Topic.count > SiteSetting.minimum_topics_similar - topics = Topic.similar_to(title, raw, current_user) + topics = Topic.similar_to(title, raw, current_user).to_a end render_serialized(topics, BasicTopicSerializer)