2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-06-20 17:20:08 -04:00
|
|
|
class TopicViewPostsSerializer < ApplicationSerializer
|
|
|
|
include PostStreamSerializerMixin
|
2017-09-26 02:42:27 -04:00
|
|
|
include SuggestedTopicsMixin
|
2013-06-20 17:20:08 -04:00
|
|
|
|
|
|
|
attributes :id
|
|
|
|
|
|
|
|
def id
|
|
|
|
object.topic.id
|
|
|
|
end
|
|
|
|
|
2018-06-21 22:38:31 -04:00
|
|
|
def include_stream?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
2018-07-02 01:58:02 -04:00
|
|
|
def include_gaps?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
2018-06-21 22:38:31 -04:00
|
|
|
def include_timeline_lookup?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
2013-06-20 17:20:08 -04:00
|
|
|
end
|