discourse/app/serializers/search_post_serializer.rb
Sam 921dd75dd9 FIX: anonymous had <a> items for pin/unpin
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.
2014-09-03 12:13:26 +10:00

9 lines
177 B
Ruby

class SearchPostSerializer < PostSerializer
has_one :topic, serializer: TopicListItemSerializer
attributes :blurb
def blurb
options[:result].blurb(object)
end
end