mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 12:33:45 +08:00
969e79d7c6
The client doesn't use the gaps results when loading new posts.
24 lines
305 B
Ruby
24 lines
305 B
Ruby
class TopicViewPostsSerializer < ApplicationSerializer
|
|
include PostStreamSerializerMixin
|
|
include SuggestedTopicsMixin
|
|
|
|
attributes :id
|
|
|
|
def id
|
|
object.topic.id
|
|
end
|
|
|
|
def include_stream?
|
|
false
|
|
end
|
|
|
|
def include_gaps?
|
|
false
|
|
end
|
|
|
|
def include_timeline_lookup?
|
|
false
|
|
end
|
|
|
|
end
|