discourse/app/serializers/topic_view_posts_serializer.rb

12 lines
181 B
Ruby

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