mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
03c6b22c62
1. Remove `cooked` becaused only the blurb is used on the client side to display search results. 2. Remove `ignored` because the result is not used in anyway when searching for pots.
18 lines
294 B
Ruby
18 lines
294 B
Ruby
class SearchPostSerializer < BasicPostSerializer
|
|
has_one :topic, serializer: SearchTopicListItemSerializer
|
|
|
|
attributes :like_count, :blurb, :post_number
|
|
|
|
def blurb
|
|
options[:result].blurb(object)
|
|
end
|
|
|
|
def include_cooked?
|
|
false
|
|
end
|
|
|
|
def include_ignored?
|
|
false
|
|
end
|
|
end
|