discourse/app/serializers/suggested_topic_serializer.rb

6 lines
145 B
Ruby

class SuggestedTopicSerializer < ListableTopicSerializer
attributes :archetype, :like_count, :views
has_one :category, embed: :objects
end