discourse/app/serializers/suggested_topic_serializer.rb

7 lines
145 B
Ruby

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