discourse/app/serializers/topic_view_posts_serializer.rb

10 lines
150 B
Ruby

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