mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
UX: Update suggested topics to include topic status + category
This commit is contained in:
@ -155,7 +155,7 @@ class TopicsController < ApplicationController
|
||||
return render json: [] unless Topic.count_exceeds_minimum?
|
||||
|
||||
topics = Topic.similar_to(title, raw, current_user).to_a
|
||||
render_serialized(topics, BasicTopicSerializer)
|
||||
render_serialized(topics, TopicListItemSerializer, root: :topics)
|
||||
end
|
||||
|
||||
def feature_stats
|
||||
|
Reference in New Issue
Block a user