discourse/app/serializers/search_topic_list_item_serializer.rb
Guo Xiang Tan 10a6824e5f
Revert "PERF: Reduce size of search payload by removing unused topic attributes."
This reverts commit 84de643c04.

Users are using the search endpoint as public API even though it is
meant to be internal. Revert for now while we figure out the path
forward on providing a more stable API to end users.
2020-07-23 09:25:31 +08:00

16 lines
234 B
Ruby

# frozen_string_literal: true
class SearchTopicListItemSerializer < ListableTopicSerializer
include TopicTagsMixin
attributes :category_id
def include_image_url?
false
end
def include_thumbnails?
false
end
end