mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 02:53:42 +08:00
921dd75dd9
FEATURE: display category in search results FEATURE: display topic state (locked/pinned/etc) in search results UI cleanup for search results, clearing floats and so on.
10 lines
177 B
Ruby
10 lines
177 B
Ruby
class SearchPostSerializer < PostSerializer
|
|
|
|
has_one :topic, serializer: TopicListItemSerializer
|
|
|
|
attributes :blurb
|
|
def blurb
|
|
options[:result].blurb(object)
|
|
end
|
|
end
|