discourse/app/serializers/topic_view_posts_serializer.rb

12 lines
181 B
Ruby
Raw Normal View History

class TopicViewPostsSerializer < ApplicationSerializer
include PostStreamSerializerMixin
include SuggestedTopicsMixin
attributes :id
def id
object.topic.id
end
end